Uploaded image for project: 'Log Tool'
  1. Log Tool
  2. LOGTOOL-105

Option to have LoggingToolsProcessor to not use javax.annotation.Generated

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.1.0.Alpha2
    • None
    • None
    • Hide
      There will be an attempt to determine which {{@Generated}} annotation to use. First the {{javax.annotation.Generated}} is tried and if unsuccessful the {{javax.annotation.processing.Generated}} is tried. If neither work no annation will be added to the generated source.

      You can also specify {{-AaddGeneratedAnnotation=false}} to not add annotations to the generated source at all.
      Show
      There will be an attempt to determine which {{@Generated}} annotation to use. First the {{javax.annotation.Generated}} is tried and if unsuccessful the {{javax.annotation.processing.Generated}} is tried. If neither work no annation will be added to the generated source. You can also specify {{-AaddGeneratedAnnotation=false}} to not add annotations to the generated source at all.

      To allow projects using the JBoss Logging annotation processor to test latest Java 9 Jigsaw builds, we need to be able to workaround issue
      https://bugs.openjdk.java.net/browse/JDK-8152842

      I'm introducing an annotation processor option which will cause the generated source code to "forget" to mark the generated code with javax.annotation.Generated.

      -AskipGeneratedAnnotation=true- -AaddGeneratedAnnotation=false

      The JMH annotation processor followed a similar path:
      https://bugs.openjdk.java.net/browse/CODETOOLS-7901643

            sgrinove Sanne Grinovero
            sgrinove Sanne Grinovero
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: