[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #48817] java interface: char mxn converted int
From: |
Ernst Reissner |
Subject: |
[Octave-bug-tracker] [bug #48817] java interface: char mxn converted into String instead of String[] |
Date: |
Thu, 18 Aug 2016 17:09:35 +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/?48817>
Summary: java interface: char mxn converted into String
instead of String[]
Project: GNU Octave
Submitted by: ernstreissner
Submitted on: Thu 18 Aug 2016 05:09:32 PM 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:
According to
http://de.mathworks.com/help/matlab/matlab_external/passing-data-to-a-java-method.html,
char mxn with m,n>1 shall be converted into String[].
What happens is that it is converted into String.
With the java class attached, try:
t=javaObject('eu.simuline.octave.OctaveInterfaceTester')
and then
t.str=['ab';'cd';'ef'].
This is really nonsense because str has type String.
Nevertheless:
t.str yields 'ab'.
The problem is in ov-java::unbox
where also ['ab';'cd';'ef'] is a string value
converted into an UTF-string.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 18 Aug 2016 05:09:32 PM GMT Name: OctaveInterfaceTester.java Size:
5kB By: ernstreissner
<http://savannah.gnu.org/bugs/download.php?file_id=38256>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48817>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #48817] java interface: char mxn converted into String instead of String[],
Ernst Reissner <=