6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
authoralanb
Thu, 23 Apr 2009 19:44:43 +0100
changeset 2702 b7abe28d66dd
parent 2634 3b7f52bf2284
child 2703 acd4d6a53e3e
6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile Reviewed-by: darcy, mcimadamore
jdk/test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java
--- a/jdk/test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java	Tue Apr 21 09:03:36 2009 -0700
+++ b/jdk/test/java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java	Thu Apr 23 19:44:43 2009 +0100
@@ -23,7 +23,7 @@
 
 /*
  * @test
- * @bug 4962341
+ * @bug 4962341 6832557
  * @summary Check getEnclosingMethod method
  * @author Joseph D. Darcy
  */
@@ -57,8 +57,8 @@
     }
 
 
-    static int examine(Class enclosedClass, String constructorSig) {
-        Constructor c = enclosedClass.getEnclosingConstructor();
+    static int examine(Class<?> enclosedClass, String constructorSig) {
+        Constructor<?> c = enclosedClass.getEnclosingConstructor();
         if (c == null && constructorSig == null)
             return 0;