-
Notifications
You must be signed in to change notification settings - Fork 6k
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
swagger-codegen-cli doesn't build anymore with OpenJDK #1160
Comments
If I add
to the configuration of the maven-surefire-plugin, those 19 test errors disappear, I get three others instead:
|
@ePaul it's working fine in my Mac. I'm now doing a test in Ubuntu (virtualbox vm) |
@ePaul I'm able to repeat the issue in the Linux VM. While we're looking into the issue, I wonder if you can try cc @Helmsdown |
@ePaul I updated pom.xml with the latest version of jmockit (1.19):
and no longer encounter the same error (the build is now successful). Can you try to see if that fixes the issue for you as well? (Tested jmockit 1.9 with swagger-codegen on Mac and the result is good too) |
Yup, it works with Thanks. |
Thanks for the confirmation. I'll file a PR to fix the issue in |
@wing328 I hope you didnt have to debug this for very long. Sorry for any frustration. |
@Helmsdown it's fine 😃 |
Summary
The swagger-codegen project (and there specifically the swagger-codegen-cli subproject) doesn't build anymore on OpenJDK 1.7.0_79 (64 bit Server VM on Linux) in the current master (commit 2b48ec0).
Reproducible
Install the mentioned JVM, run
mvn clean install
in the project root.You see several exceptions of this type:
... and then
Analysis
Bisecting the problem shows commit e5811eb as the one which introduced the problem (its parent commit 392e517 builds without problems).
It looks like my VM doesn't work with the JMockit library (or the other way around), or it needs some special way to be used:
By the way, JMockit seems to need JDK 1.8, while this project's README says to use JDK 1.7?
The text was updated successfully, but these errors were encountered: