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

Using cal10n-api: fix SupportedSourceVersion compilation warning #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sylvain-Bugat
Copy link

When using cal10n-api this compilation warning is displayed:
[WARNING] Supported source version 'RELEASE_5' from annotation processor 'ch.qos.cal10n.verifier.processor.CAL10NAnnotationProcessor' less than -source '1.7'

This workaround has been found on netbeans and another projetct bug tracker: https://netbeans.org/bugzilla/show_bug.cgi?id=210286
kohsuke/metainf-services#3
They have the same warning.

This warning will not be fixed in the java compiler by a -Xlint option because this behaviour is expected and documented:
https://bugs.openjdk.java.net/browse/JDK-8037955
https://bugs.openjdk.java.net/browse/JDK-7184902

When using cal10n-api this compilation warning is displayed: [WARNING] Supported source version 'RELEASE_5' from annotation processor 'ch.qos.cal10n.verifier.processor.CAL10NAnnotationProcessor' less than -source '1.7'
@merusso
Copy link

merusso commented Feb 20, 2016

This is a really annoying issue that needs to be fixed!

However, I'm not sure about this specific fix. What would happen if Java 9 was used. Will this warning be output?
What if instead, the "latestJavaVersion" was used? Then the warning should never be output.

@MartyIX
Copy link

MartyIX commented Apr 4, 2017

This bug seems to be reported also here: https://jira.qos.ch/browse/CAL-47

@Deathnerd
Copy link

Any movement on this would be appreciated. We have an slf4j dependency and get this compilation message multiple times throughout the build. It doesn't break anything but it is annoying

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