-
Notifications
You must be signed in to change notification settings - Fork 498
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
[Bug] A possible bug found in JVM differential testing #89
Comments
Hello @Instein98 , thanks for reporting! I tried your test locally with OpenJDK 8u232b09, it finished successfully in the same way as Dragonwell8. |
Hi!
openjdk9:
j9:
dragonwell11:
|
The several jdk8 releases you mentioned in your test looks to be at different update versions. |
Thanks for your advice! I will change them to the corresponding update versions later. |
I tried this test on |
actually there are different JVM specifications for each JDK releases, see You may want to compare openjdk 8 and openjdk 11 to determine if the Dragonwell difference comes from upstream OpenJDK code or from Dragonwell enhancement. |
Hi, recently I dug deeper into this discrepancy. I found in the org.apache.tools.ant.launch.Launcher class file, there is an illegal class name in the constant pool, which looks like In https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.2.1, it says
Since the last identifier which makes up that class name contains a lot of semicolons, I think openjdk8 and dragonwell8 should treat this class name as an illegal class name. But actually they can run it successfully. Maybe it is be a bug of openjdk8 and dragonwell8? |
Can you please share the class file mentioned in above comment? so I can take a close look at the issue. Cheers |
It is the same class file mentioned in the first comment. ant.zip, the class file path is ant-launcher/org/apache/tools/ant/launch/Launcher.class, and the reproduce steps is also mentioned in the first comment. |
It was confirmed by Oracle: https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8242352 |
Dragonwell will try to be compatible with OpenJDK. Cheers |
[Misc] Revert current aarch64 support
Description
We made some changes to a class file in the Apache Ant project(ant-launcher/org/apache/tools/ant/launch/Launcher.class), and let several JVMs run it. We found that compared to other JVMs, dragonwell8 behaves strangely. It might be a bug in dragonwell8.
Steps to Reproduce
Steps to reproduce the behavior:
ant
directory, run commandjava -cp ant-launcher/ org.apache.tools.ant.launch.Launcher compile jar run
Expected behavior
dragonwell8 can run it successfully while other JVMs can not.
JDK version
$ java -version openjdk version "1.8.0_232" OpenJDK Runtime Environment (Alibaba Dragonwell 8.2.2-b82) (build 1.8.0_232-b09) OpenJDK 64-Bit Server VM (Alibaba Dragonwell 8.2.2-b82) (build 25.232-b09, mixed mode)
Execution environment
The text was updated successfully, but these errors were encountered: