[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57619] test failure of ov-java.cc-tst with Oc
From: |
Hartmut |
Subject: |
[Octave-bug-tracker] [bug #57619] test failure of ov-java.cc-tst with Octave 5.1.90 (Win 10) |
Date: |
Fri, 17 Jan 2020 03:28:06 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:72.0) Gecko/20100101 Firefox/72.0 |
URL:
<https://savannah.gnu.org/bugs/?57619>
Summary: test failure of ov-java.cc-tst with Octave 5.1.90
(Win 10)
Project: GNU Octave
Submitted by: hardy
Submitted on: Fri 17 Jan 2020 08:28:05 AM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Unexpected Error
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 5.1.0
Operating System: Microsoft Windows
_______________________________________________________
Details:
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.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57619>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57619] test failure of ov-java.cc-tst with Octave 5.1.90 (Win 10),
Hartmut <=