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

3.0-SNAPSHOT: class file has wrong version 60.0, should be 55.0 #1190

Closed
crummy opened this issue Jan 10, 2022 · 3 comments
Closed

3.0-SNAPSHOT: class file has wrong version 60.0, should be 55.0 #1190

crummy opened this issue Jan 10, 2022 · 3 comments

Comments

@crummy
Copy link
Contributor

crummy commented Jan 10, 2022

I tried upgrading from 2.3.2-j8 to 3.0-SNAPSHOT. I changed my pom versions and added the snapshot repositories. However, when I run mvn package I get this error:

bad class file: /Users/.../.m2/repository/org/javalite/activejdbc/3.0-SNAPSHOT/activejdbc-3.0-SNAPSHOT.jar(/org/javalite/activejdbc/ModelDelegate.class)
    class file has wrong version 60.0, should be 55.0

To investigate further, I downloaded the latest 3.0-SNAPSHOT jar from here: https://oss.sonatype.org/#nexus-search;gav~org.javalite~activejdbc-instrumentation~~~~kw,versionexpand

Then I ran:

$ jar xf activejdbc-instrumentation-3.0-20220106.015318-160.jar
$ cd org/javalite/activejdbc
$ file DBProxy.class
DBProxy.class: compiled Java class data, version 60.0

I think version 55 is Java 11, which I'm running locally, and version 60 is Java 16. https://javalite.io/releases refers to 3.0 as the Java 11 version. Should 3.0-SNAPSHOT work with Java 11?

@ipolevoy
Copy link
Member

@crummy 3.0-SNAPSHOTis only for Java 16. The version of JavaLite for Java 11: https://search.maven.org/artifact/org.javalite/javalite/3.0-j11/pom was released in April 2021 and did not get any new stuff back-ported to it since it was released.

@ipolevoy
Copy link
Member

@crummy this is my fault, so sorry. The version 3.0-SNAPSHOT is built for Java 16. We are focusing all our efforts on it, and consider v8 and v11 "legacy". I had incorrect info on the website, but it is now fixed: https://javalite.io/releases#latest-snapshots :(

@crummy
Copy link
Contributor Author

crummy commented Jan 12, 2022

All good. We've moved to 17 now anyway, so fine with this outcome. Thanks!

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

No branches or pull requests

2 participants