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

 
 

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

Submitted by:  Ivo <icouckuy>
Submitted on:  Tue 12 Apr 2016 04:47:22 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: DuplicateAssigned 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.

 

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>
Project 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 File(s):
   
   
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)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 May 2016 08:08:48 PM UTCmtmillerStatusConfirmed=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on task #12601
    Tue 12 Apr 2016 05:53:51 PM UTCphilipnienhuisStatusNone=>Confirmed
      Release4.0.1=>dev
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1