bugGNU Octave - Bugs: bug #48817, java interface: char mxn converted...

 
 

bug #48817: java interface: char mxn converted into String instead of String[]

Submitter:  Ernst Reissner <ernstreissner>
Submitted:  Thu 18 Aug 2016 05:09:32 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 18 Aug 2016 05:09:32 PM UTC, original submission:  

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.

Ernst Reissner <ernstreissner>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #38256:  OctaveInterfaceTester.java added by ernstreissner (5KiB - application/x-java)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by ernstreissner (Submitted the item)
  • -email is unavailable- added by ernstreissner
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-18 mtmiller CategoryNone Interpreter
        Item GroupNone Matlab Compatibility
    2016-08-18 ernstreissner Attached File- Added OctaveInterfaceTester.java, #38256
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code