Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Compiling app with embedded JRuby has RELEASE_6 warning #2733
It looks like something in your build is trying to load or run our AnnotationBinder, which had @SupportedSourceVersion(RELEASE_6). Because you are running on a Java 8 JVM, you were warned because that annotation is used to indicate the latest version our annotation processor supports.
I'm modifying AnnotationBinder to just override getSupportedSourceVersion and always return the latest version that JVM supports, since it's a pretty simple processor and should support future source versions without modification (and if it doesn't, we'll find out pretty fast).
This is fixed in 870f979. I'd like to know more about your build, though, so I can understand why our annotation processor was getting loaded. You must be using the Sisu container for your app, yes? It seems like whatever annotation processing Sisu does is overreaching and touching annotations from the libraries contained within.
I will file a separate bug to remove the build-time annotation processor, since I don't think it's useful to anyone but us.
We don't use Sisu.
Here's the application: https://github.com/oneis/haplo
Internally we built it with ant, and the open source version uses Maven.
However, I can't seem get Maven to output the warning, which is either because Maven is a different complication environment which isn't affected, or I don't know Maven well enough.
If you're particularly interested in this issue, I can send you the ant version of the build script.
Incidentally, I've been meaning to work out why this complete bodge was needed for the latest 1.7.x releases: https://github.com/oneis/haplo/blob/master/framework/boot.rb#L50 -- need to find the time to write a nice test case.