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
ClassLoader cannot load model classes under OpenJDK 11. Is Java 11 even supported? #803
Comments
Sorry, but we are not supporting JDK above 8.x yet |
Any plans to support them in the near future? |
@lpld good question, I do not see reasons why not, also considering the current state of Java, we should migrate to OpenJDK and probably skip versions 9, 10 and start supporting v 11. thoughts? |
Well, I like the plan :) Supporting 9 and 10 definitely wouldn't make any sense. BTW, is there any way I can help? I won't be able to spend too much time, but I think I could find some. |
@lpld that would be great! Can you fork, and run the build on OpenJDK 9 first? Then v 11. Some work for JDK9 has already been done on this branch: https://github.com/javalite/activejdbc/commits/java9, so you may look into that. As you find issues, we can collaborate here. Once the local build is working on 9 and 11, we will configure a new build on Travis. |
Great, thanks. I will keep you informed then. |
@lpld simply showing you what changes you may need to make on the 11. |
Ahh I see. I thought you wanted to do it in some kind of incremental way: Java 9, then Java 11. Ok, so I will post my updates here as I move on. |
@lpld 👍 |
Stuck for now. Maven plugin-plugin uses maven-plugin-tools (latest version is 3.5.2), which in turn uses ASM 5. ASM starts supporting Java 11 from version 7 and is now only in beta. Thought I could trick plugin-tools by specifying ASM 7-beta dependency directly, but it turns out that plugin-tools specify ASM api version in the code: https://github.com/apache/maven-plugin-tools/blob/maven-plugin-tools-3.5.2/maven-plugin-tools-annotations/src/main/java/org/apache/maven/tools/plugin/extractor/annotations/scanner/visitors/MojoAnnotationVisitor.java
So it fails even with ASM 7. Looks like we'll have to wait until maven-plugin-tools 3.6.0 is out. And maybe it was a good idea to start incrementally, from Java 9 :) |
haha, maybe. However, that -brings more complexities. Some people will stay on the v8 for a long time, meaning we will have to support all features and bugs in multiple branches and have multiple Travis builds for different versions of JavaLite. This is one reason why we stopped at v8 for now. |
Agree. Let's wait for ASM 7 and maven-plugin-tools releases then. Will see how it builds after that. |
👍 |
Just saw the news: ASM 7.0 released |
when I release new versions of JavaLite, it takes a day/two for them to show on Maven central |
Hello, does
The compiler:
|
|
@jacktang you got lucky, we are not yet supporting Java 11 officially. Will be soon though! |
|
@ipolevoy
|
@jacktang , we will be releasing the 2.3 version in the next week/two and after that, will be migrating to Java 11 for 2.4 release. |
@ipolevoy what is the current timeline for 2.3 and 2.4? |
@npmarrin we are working to restore the Travis build which broke for some reason. When that is done (@jfcabral promises this weekend), we will focus on releasing 2.3. After that, we will set a new snapshot version 3.0-SNAPSHOT (not 2.4) and focus on Java 11 support. I hope we can do both before mid-July. |
@ipolevoy just checking in, curious if you are still generally on track with 2.4 for mid July or sooner? |
we just released 2.3 and will be working on releasing 3.0 on Java 11m however that work will start some tine this week, so hard to tell, but we are shooting for end of July at least. |
Hey guys, good news. The Java11 support is around the corner. The first snapshot is published: https://oss.sonatype.org/content/repositories/snapshots/org/javalite/activejdbc/3.0-SNAPSHOT/. Can you please take this shanshot for a spin and let me know if it resolves this issue, so I could close it. |
@lpld I will be closing this issue in lieu of my comment above #803 (comment) and #869. If you run into problems, you can reopen this issue or open a new one. |
Trying to migrate our apps to Java 11. Got an error while starting the app, definitely something related to instrumentation. Using latest available version of ActiveJDBC (2.2). Error happens under AdoptOpenJDK jdk-11.28.
I couldn't find any info about the supported Java versions in ActiveJDBC. Is Java 11 supported?
Here's the log:
Thank you.
The text was updated successfully, but these errors were encountered: