# HG changeset patch # User Rik # Date 1428506368 25200 # Node ID d7b1999f055412a996cfb979474e3f84913e70cd # Parent ae12edf69bce48e4ccacf51dc7d85b007de3d006 Second fix for exist() should return 1 for java objects (bug #44764). * ov-java.h: Overload is_constant() 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,9 +143,7 @@ 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_constant (void) const { return true; } bool is_map (void) const { return false; }