[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51804] java-9: java.base/java.lang.Double can
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #51804] java-9: java.base/java.lang.Double cannot be cast to java.base/java.lang.Integer |
Date: |
Sun, 20 Aug 2017 16:45:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Follow-up Comment #5, bug #51804 (project octave):
I don't see any difference in the API, both Java 8 and 9 say that
java.lang.Integer.compareTo takes java.lang.Integer as an argument. However,
when Octave is inspecting the runtime for the method "compareTo", the result
says that it takes an argument of type java.lang.Object, not Integer. Octave
doesn't do any casting because it doesn't think it has to, but then when the
method is called the exception is thrown.
Someone might want to look into the Java 9 runtime in more detail and find out
why this is happening. I think it will take writing some Java code to iterate
over the available methods in the Integer class and see what's different.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51804>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/