# HG changeset patch # User Rik # Date 1428469479 25200 # Node ID 302e48c2de5da19790bb8ce1932bc5daf9493352 # Parent dbf2418a46dd099078ec34fb11ca026017110c89 exist() should return 1 for java objects (bug #44764). * ov-java.h: Overload is_object() function to return true for java octave-values. diff -r dbf2418a46dd -r 302e48c2de5d libinterp/octave-value/ov-java.h --- a/libinterp/octave-value/ov-java.h Tue Apr 07 21:18:22 2015 -0700 +++ b/libinterp/octave-value/ov-java.h Tue Apr 07 22:04:39 2015 -0700 @@ -143,6 +143,10 @@ bool is_defined (void) const { return true; } + // FIXME: Is a variable containing a java object an object? + // Or should this be is_constant like a matrix? + bool is_object (void) const { return true; } + bool is_map (void) const { return false; } bool is_java (void) const { return true; }