[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48813] Java interface: untyped []
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #48813] Java interface: untyped [] |
Date: |
Thu, 18 Aug 2016 17:40:18 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
Update of bug #48813 (project octave):
Status: None => Wont Fix
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
If Matlab says that a Java null object is converted into a Matlab empty
matrix, then it's working as expected.
According to my reading this is correct. A null value returned from Java
should become an Octave empty (double) matrix. Any empty numeric matrix passed
in to Java should be treated as a null reference.
The typical Octave equivalent to "x == null" is "isempty (x)". This is an
extremely common usage, so it makes sense that a Java null would be returned
as an empty array.
If you create a "static boolean isNull (Object obj)" function, and pass it
various empty (numeric) matrices, they should all return true.
Nothing needs to be fixed here.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48813>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/