diff libinterp/octave-value/ov-java.h @ 20078:302e48c2de5d

exist() should return 1 for java objects (bug #44764). * ov-java.h: Overload is_object() function to return true for java octave-values.
author Rik <rik@octave.org>
date Tue, 07 Apr 2015 22:04:39 -0700
parents 107130a0490c
children d7b1999f0554
line wrap: on
line diff
--- 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; }