Cross Reference: AnonStaticMember_2.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
NonAmbiguousField
/
Test
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
0
N/A
/*
854
N/A
* @test /nodynamiccopyright/
889
N/A
* @bug 4279339 6969184
0
N/A
* @summary Verify that an anonymous class cannot contain a static method.
0
N/A
* @author maddox
0
N/A
*
854
N/A
* @run
compile
/
fail
/
ref
=AnonStaticMember_2.out -XDrawDiagnostics
AnonStaticMember_2.java
0
N/A
*/
0
N/A
0
N/A
class
AnonStaticMember_2
{
0
N/A
Object
x =
new
Object
() {
0
N/A
static
void
test
() {}
0
N/A
};
0
N/A
}