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

TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-libs

      Description

      The following regression test

         java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java

      fails to compile since jdk7 b55 because of the changes in the javac (see 6400189):

      $ /java/re/jdk/7/promoted/all/b55/binaries/solaris-sparc/bin/javac EnclosingConstructorTests.java
      EnclosingConstructorTests.java:66: cannot find symbol
                  c.getAnnotation(ConstructorDescriptor.class).value().equals(constructorSig))
                                                              ^
        symbol: method value()
        location: interface java.lang.annotation.Annotation
      Note: EnclosingConstructorTests.java uses unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      1 error

      The test needs to be fixed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                sdolgovorcl Sergey Dolgov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: