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: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating 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:

and then

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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Updated the item)
  • -unavailable- added by ernstreissner (Submitted the item)
  • -unavailable- added by ernstreissner
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 18 Nov 2016 07:30:13 PM UTCmtmillerCategoryNone=>Interpreter
      Item GroupNone=>Matlab Compatibility
    Thu 18 Aug 2016 05:09:32 PM UTCernstreissnerAttached File-=>Added OctaveInterfaceTester.java, #38256
      Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1