Cross Reference: T6521805d.java
xref
: /
openjdk7
/
langtools
/
test
/
tools
/
javac
/
6521805
/
T6521805d.java
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
T6521805d.java revision 383
358
N/A
/*
383
N/A
* @test /nodynamiccopyright/
358
N/A
* @bug 6521805
358
N/A
* @summary Regression:
JDK5
/
JDK6
javac allows write access to outer class reference
358
N/A
* @author mcimadamore
358
N/A
*
358
N/A
* @
compile
/
fail
/
ref
=T6521805d.out
T6521805d.java
-XDrawDiagnostics
358
N/A
*/
358
N/A
358
N/A
class
T6521805
{
358
N/A
358
N/A
static
class
Inner
extends
T6521805
.
Outer
{
358
N/A
358
N/A
Inner
(
T6521805
t) {
358
N/A
t.
super
();
358
N/A
}
358
N/A
358
N/A
T6521805
this
$
0
=
null
;
358
N/A
358
N/A
public
void
foo
() {
358
N/A
this
$
0
=
new
T6521805
();
358
N/A
}
358
N/A
}
358
N/A
358
N/A
class
Outer
{}
358
N/A
358
N/A
}