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

(ann) test/java/lang/annotation/package-info.java no longer compiles

XMLWordPrintable

    • b138
    • generic
    • generic
    • Verified

      A recent fix to javac (6993311) means that annotations on packages are now validated. This exposes an existing test in the jdk repository that needs to be re-examined.

      --------------------------------------------------
      TEST: java/lang/annotation/package-info.java
      JDK under test: (/tmp/jprt/P2/T/093336.ab23780/testproduct/linux_x64_2.6-product)
      java version "1.7.0-internal"
      Java(TM) SE Runtime Environment (build 1.7.0-internal-201103220933.ab23780.TL-b00)
      Java HotSpot(TM) 64-Bit Server VM (build 21.0-b04, mixed mode)

      ACTION: compile -- Failed. Compilation failed: Compilation failed
      REASON: User specified action: run compile package-info.java PackageMain.java
      TIME: 0.02 seconds
      messages:
      command: compile /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/PackageMain.java
      reason: User specified action: run compile package-info.java PackageMain.java
      elapsed time (seconds): 0.02
      direct:
      /tmp/jprt/P2/T/093336.ab23780/source/jdk/test/java/lang/annotation/package-info.java:34: error: annotation type not applicable to this kind of declaration
      @java.lang.annotation.Documented
      ^
      1 error

      TEST RESULT: Failed. Compilation failed: Compilation failed
      --------------------------------------------------

            jjh James Holmlund (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: