octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #42701] java toString method returns char inst


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #42701] java toString method returns char instead of java.lang.String
Date: Thu, 10 Jul 2014 11:13:02 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 Iceweasel/30.0

Follow-up Comment #2, bug #42701 (project octave):

I tested with Matlab R2010b. Yes, the documentation does suggest that but
then, the following documentation on the same page:

> With the MATLAB char function, you can convert java.lang.String
> objects and arrays to MATLAB character arrays.

does not make a lot of sense. Why are they writing about calling char() on a
java.lang.String if that an object cannot exist (it is automatically converted
to char)?

This is very much against their documentation. I just tried your second
example:


>> class (x.toString ())
>> x = javaObject('java.lang.Double', 10);
>> y = x.toString();
>> class(y)

ans =

java.lang.String

>> version

ans =

7.11.0.584 (R2010b)



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?42701>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]