You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2019/10/18 12:43:29 UTC

[GitHub] [netbeans] sdedic opened a new pull request #1578: NETBEANS-3250: Fix warnings from annotation processors.

sdedic opened a new pull request #1578: NETBEANS-3250: Fix warnings from annotation processors.
URL: https://github.com/apache/netbeans/pull/1578
 
 
   See [NETBEANS-3250](https://issues.apache.org/jira/browse/NETBEANS-3250).
   Most of annotation processors are not affected by features added to Java, and once they declare a specific `@SupportedSourceVersion`, they start to produce warnings during compilation with the next released JDK:
   ```
   "warning: Supported source version 'RELEASE_7' from annotation processor 'org.netbeans.modules.openide.util.ServiceProviderProcessor' less than -source '1.8'"
   ```
   So usually it's best to declare the processor to support `SourceVersion.latest()`, but that cannot be done using annotation. Most of annotation processors in NetBeans generate layers, and derive from `LayerGeneratingProcessor`, so I've decided to change that base class.
   
   I've split the work into several commits, to make it cleaner for review:
   * b2acf687 - changes to `org.openide.util.lookup` and `org.openide.filesystems` to the abstract processor impl, increased specification version
   * 5d32a993 - adapted the rest of Util + Filesystems processors.
   * 467f689b - updated the rest of the GIT repository
   * 3126f706 - hint that looks for obsolete or missing `@SupportedSourceVersion`, and suggest solutions
   * daf35838 - code generation support in Editor (hooked onto ALT-INSERT) that generates override of `getSupportedSourceVersion` + some fixes to the shared code.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists