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

Java files compiled with version 55 #685

Closed
sksamuel opened this issue Feb 18, 2019 · 4 comments
Closed

Java files compiled with version 55 #685

sksamuel opened this issue Feb 18, 2019 · 4 comments
Assignees
Labels
bug 🐛 Issues that report a problem or error in the code.
Milestone

Comments

@sksamuel
Copy link
Member

Hey! I've been trying the new release to see if it's everything OK.

Not sure if this has something to do with this release, but when using the 3.3.0-RC2 version, I get this error:

java.lang.UnsupportedClassVersionError: org/junit/jupiter/api/condition/EnabledIfSystemProperty 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

It doesn't happen when using the 3.2.1

It runs the tests anyway, it just appear as an initialization error, but it counts as a failed test:

image

I've tried doing a mvn clean test, but it doesn't make any difference

Let me know if you need more information

Originally posted by @leoxs22 in #628 (comment)

@sksamuel sksamuel added this to the 3.3 milestone Feb 18, 2019
@sksamuel sksamuel added the bug 🐛 Issues that report a problem or error in the code. label Feb 18, 2019
@sksamuel sksamuel self-assigned this Feb 18, 2019
@leoxs22
Copy link
Contributor

leoxs22 commented Feb 18, 2019

Maybe it's related to this answer?

https://stackoverflow.com/a/44263437

It says that the target and source tags should be inside a compileJava block, and not in the root

@sksamuel
Copy link
Member Author

I've got it to work by adding the same flags to the java submodule.

@sksamuel
Copy link
Member Author

I've released 3.3.0-RC3. Please give that a go and let me know (it will take 10 minutes to appear on maven central).

@mindhaq
Copy link
Contributor

mindhaq commented Feb 22, 2019

I've released 3.3.0-RC3. Please give that a go and let me know (it will take 10 minutes to appear on maven central).

For me, this solved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Issues that report a problem or error in the code.
Projects
None yet
Development

No branches or pull requests

3 participants