bugGNU Octave - Bugs: bug #57619, test failure of ov-java.cc-tst...

 
 

bug #57619: test failure of ov-java.cc-tst with Octave 5.1.90 (Win 10)

Submitter:  Hartmut <hardy>
Submitted:  Fri 17 Jan 2020 08:28:05 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 5.1.0 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Jan 2020 07:56:28 PM UTC, comment #1: 

Yeah, this looks like another symptom of bug #51804, which is still open and still applies. Closing as a duplicate.

Mike Miller <mtmiller>
Group Member
Fri 17 Jan 2020 08:28:05 AM UTC, original submission:  

I tested the current release candidate Octave 5.1.90 (from alpha.gnu.org) under Windows 10. Running the test suite gives me one error:


>>>>> processing C:\Octave\OCTAVE~1.90\mingw64\share\octave\5.1.90\etc\tests\libinterp\octave-value\ov-java.cc-tst
***** testif HAVE_JAVA; usejava ("jvm")
 n = javaObject ("java.lang.Float", 1.35);
 assert (n.compareTo (1.0), 1);
 assert (n.compareTo (1.35), 0);
 assert (n.compareTo (10), -1);
 assert (n.doubleValue (), 1.35, 1e7);
!!!!! test failed
[java] java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Float (java.lang.Double and java.lang.Float are in module java.base of loader 'bootstrap')
***** testif HAVE_JAVA; usejava ("jvm") <51804>
 n = javaObject ("java.lang.Integer", 1.35);
 assert (n.compareTo (0), 1);
 assert (n.compareTo (1), 0);
 assert (n.compareTo (2), -1);
!!!!! known bug: https://octave.org/testfailure/?51804
[java] java.lang.ClassCastException: class java.lang.Double cannot be cast to class java.lang.Integer (java.lang.Double and java.lang.Integer are in module java.base of loader 'bootstrap')


I do see the same test failure with the Octave 5.1.0 release on this Win10 machine.

The following Java version is installed on this Win10 PC: "OpenJDK12 JRE 12.0.2.10" (from https://adoptopenjdk.net/) Because the license for Oracle Java isn't free enough any more...

I assume that this is identical (or at least related) to bug #53728 or bug #51804. But I thought it's worth noting, since 5.1.90 is a release candidate and those bugs seemed older.

Hartmut <hardy>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Carbon-Copy List
  • -email is unavailable- added by hardy (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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-09-09 mmuetzel Dependencies- bugs #59088 is dependent
    2020-01-17 mtmiller StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #51804

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code