bugGNU Octave - Bugs: bug #47679, native java object creation and...

 
 

bug #47679: native java object creation and static method calls

Submitter:  Ivo <icouckuy>
Submitted:  Tue 12 Apr 2016 04:47:22 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 12 Apr 2016 05:53:51 PM UTC, comment #1: 

See here:
https://savannah.gnu.org/task/?12601

Octave's Java implementations isn't complete yet. Volunteers needed.

OS -> Any
Release -> dev

Philip Nienhuis <philipnienhuis>
Group Member
Tue 12 Apr 2016 04:47:22 PM UTC, original submission:  

In Matlab you can directly use java calls in the code to construct java objects, get and set fields and call static methods:
% static method call
logger = java.util.logging.Logger.getLogger('myLogger');
% object CTor
obj = java.lang.String('hello');

In octave I have to go through javaMethod, javaObject and java_set/get. This wouldn't be a problem except Matlab doesn't have these and thus I need to add a lot of if/else clauses to our code.

How hard would it be to enable support for this ? I realize this would create some disambiguation as the interpreter would need to try and execute the statement as either a 'Matlab' or 'java' call before it knows the class actually exists in either environment (VM).

As a sidenote, Matlab supports the import statement too:
import java.lang.*;
obj = String('hello');

Ivo <icouckuy>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   task dependencies.

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 icouckuy (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
    2016-05-16 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on task #12601
    2016-04-12 philipnienhuis StatusNone Confirmed
        Release4.0.1 dev
        Operating SystemGNU/Linux Any

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code