bugGNU Octave - Bugs: bug #62962, equality operator '==' should...

 
 

bug #62962: equality operator '==' should support Java objects

Submitter:  Rik <rik5>
Submitted:  Fri 26 Aug 2022 10:02:13 PM UTC
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Fri 26 Aug 2022 10:02:13 PM UTC, original submission:  

Example code:

x = javaObject ('java.lang.Float', 1.0)
x == x
error: binary operator '==' not implemented for 'octave_java' by 'octave_java' operations
x != x
error: binary operator '!=' not implemented for 'octave_java' by 'octave_java' operations

This might be resolved by installing a binary mapping for A == B of "A.equals (B)".  Many important Java classes, like the numeric ones, support the "equals" method.

Rik <rik5>
Project Administrator

 

(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 rik5 (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 project members can vote.

     

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.9