-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow Indexing with Java 8 #236
Conversation
@gselzer I don't think there's a way to use newer Java language features in older Java runtimes. What you did seems appropriate. I am curious why it was necessary though? |
My goal is to enable Op indexing within projects that may not be ready to transition to Java 11 (see imglib/imglib2-mesh#10, imglib/imglib2-algorithm#94). If you attempt to use
|
However many of the changes (specifically deleting the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am torn on this. For the module-info.java specifically, we could maybe keep it but move it to the META-INF/versions
tree. But the code changes to regress the source compatibility back to 8 from 11+ feels bad, indeed. OTOH, it's not very many changes—maintenance-wise, probably pretty easy to keep working for quite some time still. Since @gselzer already did the work, I guess the main thing is just to test whether META-INF/versions
works for the module-info.java
?
3006c60
to
7852ef7
Compare
Should enable seamless Op indexing in ImgLib2 projects
7852ef7
to
67b5ba7
Compare
86059da
to
bc13092
Compare
Current plan is to change Java-8-dependent projects to have a Java-11+ build time requirement, but still target Java 8 bytecode via the |
Should enable seamless Op indexing in ImgLib2 projects.
@hinerm - do you see any pure-POM way to enable this? I had to make a lot of unfortunate changes to the code to make it Java-8 compliant, however I feel like that shouldn't be necessary, if we instead set
maven.compiler.source
/maven.compiler.target
. Do you know what I did wrong?