changeset 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 dbf2418a46dd
children 49df5054c02e
files libinterp/octave-value/ov-java.h
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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; }