Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6341866

Source files loaded from source path are not subject to annotation processing

XMLWordPrintable

    • b57
    • 6
    • b92
    • generic
    • generic
    • Verified

      If I have two source files Foo.java and Bar.java:

      class Foo extends Bar {}

      class Bar {}

      and compile Foo.java, Bar.java is automatically read
      and compiled by javac. However, if annotation processing
      is enabled, only class Foo is considered.

      It is easy to come up with a scenario where some source
      files will be compiled without having been eligible for
      annotation processing.

            jjg Jonathan Gibbons
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: