bugGNU Octave - Bugs: bug #48737, javaArray with 1 dimension

 
 

bug #48737: javaArray with 1 dimension

Submitted by:  Ernst Reissner <ernstreissner>
Submitted on:  Tue 09 Aug 2016 08:19:15 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Works For MeAssigned to: None
Originator Name: Open/Closed: Closed
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.

 

Wed 10 Aug 2016 12:12:51 PM UTC, comment #3:

Please close this.
I did some improvement, which introduced the bug, sorry.

Ernst Reissner <ernstreissner>
Wed 10 Aug 2016 11:58:11 AM UTC, comment #2:

Hm, strange... I do.
I have almost a clone of the current tip.

Ernst Reissner <ernstreissner>
Wed 10 Aug 2016 01:20:14 AM UTC, comment #1:

I don't see any error with this:

What version / hg revision do you see this error with?

Mike Miller <mtmiller>
Project Administrator
Tue 09 Aug 2016 08:19:15 PM UTC, original submission:

according to the help text,
javaArray('java.lang.Object',3) shall create a 1 dimensional array
with 3 entries.
What happens is
error: [java] java.lang.NoSuchMethodException: createArray

In fact, what works is arrays with more than 1 dimension.

Workaround is like this:
a=javaArray('java.lang.Object',1,2)

yields
a =

<Java object: java.lang.Object[][]>

and a=a(1) yields the desired

a =

<Java object: java.lang.Object[]>

Ernst Reissner <ernstreissner>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by ernstreissner
  • -unavailable- added by ernstreissner (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 10 Aug 2016 02:28:09 PM UTCmtmillerOpen/ClosedOpen=>Closed
    Wed 10 Aug 2016 01:20:14 AM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result
      StatusNone=>Works For Me
    Tue 09 Aug 2016 08:20:00 PM UTCernstreissnerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1