mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-23 04:24:49 +02:00
6832557: TEST_BUG: java/lang/Class/getEnclosingConstructor/EnclosingConstructorTests.java fails to compile
Reviewed-by: darcy, mcimadamore
This commit is contained in:
parent
af422c1d2f
commit
b5ace034c3
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue