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

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

[Octave-bug-tracker] [bug #44882] java arrays are not automatically conv


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #44882] java arrays are not automatically converted to octave types
Date: Mon, 20 Apr 2015 10:02:12 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 Iceweasel/31.6.0

URL:
  <http://savannah.gnu.org/bugs/?44882>

                 Summary: java arrays are not automatically converted to
octave types
                 Project: GNU Octave
            Submitted by: carandraug
            Submitted on: Mon 20 Apr 2015 10:02:11 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: 4.0.0-rc2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Methods from java objects that return java base types are automatically
converted into Octave types. However, this fails when returning arrays of such
types:


octave> a = javaObject ("java.lang.String", "hello");
octave> b = a.getBytes()
b =

<Java object: byte[]>

octave> class (b)
ans = byte[]


while in Matlab R2010b:


>> b = a.getBytes()

b =

   72
  101
  108
  108
  111

>> class (b)

ans =

int8





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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