[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42701] java toString method returns char inst
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #42701] java toString method returns char instead of java.lang.String |
Date: |
Thu, 10 Jul 2014 01:18:58 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 |
Update of bug #42701 (project octave):
Category: None => Libraries
Item Group: None => Matlab Compatibility
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
Hmm, this seems to directly contradict Matlab's own documentation. At
http://www.mathworks.com/help/matlab/matlab_external/handling-data-returned-from-a-java-method.html#f61197
they explicitly say
> When a method call returns data of type java.lang.Object,
> MATLAB converts its value, depending on its actual type,
> according to the following table.
and says that a Java return value of java.lang.String should be auto-converted
into a Matlab type char value. Unless I'm completely misunderstanding that
page. What version of Matlab did you observe this in? Any different result
with
x = javaObject('java.lang.Double', 10);
y = x.toString();
class(y)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42701>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/