6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
authoralanb
Thu, 23 Apr 2009 19:44:43 +0100
changeset 1188057e4afcf978
parent 1149 cc5db1a62f70
child 1189 164ce9ff8b58
6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
Reviewed-by: darcy, mcimadamore
test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java
     1.1 --- a/test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java	Tue Apr 21 09:03:36 2009 -0700
     1.2 +++ b/test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java	Thu Apr 23 19:44:43 2009 +0100
     1.3 @@ -23,7 +23,7 @@
     1.4  
     1.5  /*
     1.6   * @test
     1.7 - * @bug 4962341
     1.8 + * @bug 4962341 6832557
     1.9   * @summary Check getEnclosingMethod method
    1.10   * @author Joseph D. Darcy
    1.11   */
    1.12 @@ -57,8 +57,8 @@
    1.13      }
    1.14  
    1.15  
    1.16 -    static int examine(Class enclosedClass, String constructorSig) {
    1.17 -        Constructor c = enclosedClass.getEnclosingConstructor();
    1.18 +    static int examine(Class<?> enclosedClass, String constructorSig) {
    1.19 +        Constructor<?> c = enclosedClass.getEnclosingConstructor();
    1.20          if (c == null && constructorSig == null)
    1.21              return 0;
    1.22