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

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

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: