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 |
ctrueden
left a comment
There was a problem hiding this comment.
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?