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

[JUnit] Version has been compiled by a more recent version of the Java Runtime (class file version 55.0) #10

Closed
kelvinharron opened this issue Oct 13, 2020 · 2 comments

Comments

@kelvinharron
Copy link

Hi g00fy, we've been using version-compare for quite some time now and the new bump highlighted an incompatibility with our unit tests

java.lang.UnsupportedClassVersionError: com/g00fy2/versioncompare/Version has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

As I understand, you would have compiled with Java 11? Is there changes we need with our junit setup to ensure compatibility going forward?

Our Junit 4 configuration is using Android API 28 Platform for the JRE.

I can migrate the tests to espresso as version-compare compiles and runs fine in app. Thanks.

@G00fY2
Copy link
Owner

G00fY2 commented Oct 13, 2020

Hey, you are right. Looks like last release was unintentionally compiled with Java 11. Should not affect actual usage, but I released a new version 1.3.7 wich is compiled with Java 8 again. Let me know if everything is working again. 😊

@G00fY2 G00fY2 closed this as completed Oct 13, 2020
@kelvinharron
Copy link
Author

Awesome, thank you for your prompt fix! Working great on our unit tests now ⭐

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

No branches or pull requests

2 participants