提交 8e0127d2 编写于 作者: A alanb

6832557: TEST_BUG:...

6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
Reviewed-by: darcy, mcimadamore
上级 84ecf0dd
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
/* /*
* @test * @test
* @bug 4962341 * @bug 4962341 6832557
* @summary Check getEnclosingMethod method * @summary Check getEnclosingMethod method
* @author Joseph D. Darcy * @author Joseph D. Darcy
*/ */
...@@ -57,8 +57,8 @@ public class EnclosingConstructorTests { ...@@ -57,8 +57,8 @@ public class EnclosingConstructorTests {
} }
static int examine(Class enclosedClass, String constructorSig) { static int examine(Class<?> enclosedClass, String constructorSig) {
Constructor c = enclosedClass.getEnclosingConstructor(); Constructor<?> c = enclosedClass.getEnclosingConstructor();
if (c == null && constructorSig == null) if (c == null && constructorSig == null)
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册