-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JVM class file parsing issue with BigInteger #920
Comments
I just installed |
The function where this error message comes from is (In case the preview doesn't work, basically what this function does is look up a
So perhaps we can just add a case to this function to accept |
Well, I tried exactly that, and now the example gets exactly as far as it does with the Oracle |
Ok, I found the specific class file that was causing the problem: By putting a print statement on
Disassembly shows that the
There's another |
Ah, there it is in the JVM spec: https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-6.html#jvms-6.5.invokestatic Here's what it has to say about
So it looks like it's indeed a bug in the jvm-parser code, which currently does not allow interface methods to be used with |
According to a careful reading of the JVM spec, apparently |
Consider the following SAWScript file that is a starting point toward specifying a function from the Java
BigInteger
class:When running this under with commit fa72caf, I get the following error:
This is with
saw -j /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/lib/rt.jar
with the Homebrew packageadoptopenjdk8
installed.The text was updated successfully, but these errors were encountered: