bugGNU Octave - Bugs: bug #42700, arrayfun is unable to handle java...

 
 

bug #42700: arrayfun is unable to handle java array

Submitter:  CarnĂ« Draug <carandraug>
Submitted:  Mon 07 Jul 2014 07:53:27 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 15 Dec 2016 06:02:42 PM UTC, comment #1: 

This issue is still present in Octave 4.2.0.

Hartmut <hardy>
Mon 07 Jul 2014 07:53:27 PM UTC, original submission:  

I found that arrayfun is unable to handle java arrays, instead I get a "can't perform indexing operations for octave_java type" although indexing with () works fine. How to reproduce:


octave-cli-3.8.1> js = javaObject ('java.lang.String', 'hello');
octave-cli-3.8.1> jsa = javaMethod ('split', js, '')
octave-cli-3.8.1> jsa(2)
ans = h
octave-cli-3.8.1> jsa(3)
ans = e
octave-cli-3.8.1> arrayfun (@char, jsa, 'UniformOutput', false)
error: can't perform indexing operations for octave_java type



Carnë Draug <carandraug>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by zertrin (also noticed this problem)
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-01 mtmiller Release3.8.2 dev
    2015-05-28 zertrin Carbon-Copy- Added zertrin
    2015-02-22 mtmiller CategoryNone Libraries
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release3.8.1 3.8.2

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code