Log4j 2
  1. Log4j 2
  2. LOG4J2-683

PluginProcessor outputs warning if running JRE>6

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-rc2
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      JRE 8

      Description

      Output:

      warning: Supported source version 'RELEASE_6' from annotation processor 'org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor' less than -source '1.8'

      Code in PluginProcessor:
      @SupportedSourceVersion(SourceVersion.RELEASE_6)

        Activity

        Hide
        Matt Sicker added a comment -

        Fixed as of revision 1607509 in trunk. Please verify and close. You'll still get warnings about "ch.qos.cal10n.verifier.processor.CAL10NAnnotationProcessor" when compiling log4j-core, though, but that's an SLF4J-related project.

        Show
        Matt Sicker added a comment - Fixed as of revision 1607509 in trunk. Please verify and close. You'll still get warnings about "ch.qos.cal10n.verifier.processor.CAL10NAnnotationProcessor" when compiling log4j-core, though, but that's an SLF4J-related project.
        Hide
        Simon Billingsley added a comment -

        I see the same issue when compiling with JDK 1.7 (with "-source 1.7" compiler flag) since upgrading to 2.0-rc2

        Show
        Simon Billingsley added a comment - I see the same issue when compiling with JDK 1.7 (with "-source 1.7" compiler flag) since upgrading to 2.0-rc2
        Hide
        Jurriaan Mous added a comment - - edited

        Ok I removed the suggestion from the issue to focus more on the issue itself. I should have known better than that.

        Here is something on stack overflow on this issue.
        http://stackoverflow.com/questions/8185331/forward-compatible-java-6-annotation-processor-and-supportedsourceversion

        But since RC2 it is outputting this warning sometimes multiple times in my gradle build scripts if I activate Log4j2 and I hope this warning can be removed somehow.

        Show
        Jurriaan Mous added a comment - - edited Ok I removed the suggestion from the issue to focus more on the issue itself. I should have known better than that. Here is something on stack overflow on this issue. http://stackoverflow.com/questions/8185331/forward-compatible-java-6-annotation-processor-and-supportedsourceversion But since RC2 it is outputting this warning sometimes multiple times in my gradle build scripts if I activate Log4j2 and I hope this warning can be removed somehow.
        Hide
        Matt Sicker added a comment -
        1. You can't call methods in an annotation like that.
        2. I don't think you can increase the supported source version without compiling against that version of the API. The reasoning behind this annotation is due to changes in the model classes and such that go with the annotation processing API.
        Show
        Matt Sicker added a comment - You can't call methods in an annotation like that. I don't think you can increase the supported source version without compiling against that version of the API. The reasoning behind this annotation is due to changes in the model classes and such that go with the annotation processing API.

          People

          • Assignee:
            Matt Sicker
            Reporter:
            Jurriaan Mous
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development