Cross Reference: T6520152.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
6520152
/
T6520152.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
/**
2362
N/A
*
@test
0
N/A
*
@bug
6520152
0
N/A
*
@summary
ACC_FINAL flag for anonymous classes shouldn't be set
0
N/A
*
@compile
T.java
0
N/A
*
@run
main
/
othervm
T6520152
0
N/A
*/
0
N/A
0
N/A
import
java
.
lang
.
reflect
.
Method
;
0
N/A
import
static
java
.
lang
.
reflect
.
Modifier
.*;
0
N/A
0
N/A
public
class
T6520152
{
0
N/A
public
static
void
main
(
String
[]
args
)
throws
Exception
{
0
N/A
Class
clazz
=
Class
.
forName
(
"T$1"
);
0
N/A
if
((
clazz
.
getModifiers
() &
FINAL
) !=
0
) {
0
N/A
throw
new
RuntimeException
(
"Failed: "
+
clazz
.
getName
() +
" shouldn't be marked final."
);
0
N/A
}
0
N/A
}
2362
N/A
}
2362
N/A