|
| From: | Ernst Reissner |
| Subject: | [Octave-bug-tracker] [bug #48813] Java interface: untyped [] |
| Date: | Thu, 18 Aug 2016 11:34:28 +0000 (UTC) |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0 |
URL:
<http://savannah.gnu.org/bugs/?48813>
Summary: Java interface: untyped []
Project: GNU Octave
Submitted by: ernstreissner
Submitted on: Thu 18 Aug 2016 11:34:25 AM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
This may be a bug or not:
Matlab's java interface represents null on Java side
as [] on Matlab side.
In octave typeinfo([]) is null_matrix
but class([]) is double.
This does not fit that for non-null Java references
typeinfo(x) is octave_java
and class(x) returns the Java classname,
because null has no class in Java:
null.getClass() thows NullpointerException
and null is used in all reference classes.
Null can be casted to all we want.
Is there some solution to that? how does Matlab behave here????
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48813>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |