Issue Type: Bug Bug
Affects Versions: 1.8
Assignee: Stephen Connolly
Components: Maven Plugin
Created: 18/Jul/12 6:21 AM
Description:

Given

<signature>
    <groupId>org.codehaus.mojo.signature</groupId>
    <artifactId>java16</artifactId>
    <version>1.0</version>
</signature>

the plugin will correctly reject

Object _ = SourceVersion.RELEASE_7;

in a method body. But it will quietly accept

@SupportedSourceVersion(SourceVersion.RELEASE_7)

on a class declaration, even though this is likely to throw a EnumConstantNotPresentException from AbstractProcessor.getSupportedSourceVersion when used from JDK 6 javac.

Debatable whether CLASS-scoped annotations should be checked this way, and presumably SOURCE would not even appear in the plugin's input, but I think RUNTIME should be checked.

Environment: JDK 7, Ubuntu
Project: Mojo Animal Sniffer
Priority: Major Major
Reporter: Jesse Glick
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to