# 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 --git a/libinterp/octave-value/ov-java.h b/libinterp/octave-value/ov-java.h --- a/libinterp/octave-value/ov-java.h +++ b/libinterp/octave-value/ov-java.h @@ -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; }