Skip to content
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

Support compiling Java source files with other Java compilers #6083

Open
hzongaro opened this issue Mar 20, 2025 · 0 comments
Open

Support compiling Java source files with other Java compilers #6083

hzongaro opened this issue Mar 20, 2025 · 0 comments

Comments

@hzongaro
Copy link
Contributor

Given a particular Java source file, different Java compilers might produce class files containing different, but equivalent, Java bytecode. Assuming the bytecode is correct, a JVM implementation should be able to correctly load and execute the bytecode in those class files. See eclipse-openj9/openj9#21417 for an example of a case in which OpenJ9 crashed running a test that had been compiled with the Eclipse Compiler for Java.

It would be nice to be able to exercise different combinations of Java compilers and JVM implementations using existing tests that would ordinarily be compiled using the javac compiler that is included with a Java SDK.

Obviously that might not scale well, given the number of different combinations of existing tests, JDK versions and JVM implementations would need to be run with different Java compilers.

Another approach that @llxia suggested might be to have a fixed set of tests that are compiled with ECJ or other Java compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant