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

 
 

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

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project 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 rei3ner@arcor.de

    Back to the top


    Powered by Savane 3.6