javac fails the following jacks test
==== 6.5.4.1-simple-11 If a simple package-or-type name is not in
the scope of a type, it is reclassified as a package name FAILED
==== Contents of test case:
compile [saveas p1/T6541s11a.java {
package p1;
public class T6541s11a {
public class p1 {}
}
class T6541s11c extends p2.T6541s11b {
// class a.p1 was not inherited, although it is accessible
// p1 resolves to a package
p1.T6541s11c p;
}
}] [saveas p2/T6541s11b.java {
package p2;
public class T6541s11b extends p1.T6541s11a {
private class p1 {} // hides a.p1
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 6.5.4.1-simple-11 FAILED
==== 6.5.4.1-simple-11 If a simple package-or-type name is not in
the scope of a type, it is reclassified as a package name FAILED
==== Contents of test case:
compile [saveas p1/T6541s11a.java {
package p1;
public class T6541s11a {
public class p1 {}
}
class T6541s11c extends p2.T6541s11b {
// class a.p1 was not inherited, although it is accessible
// p1 resolves to a package
p1.T6541s11c p;
}
}] [saveas p2/T6541s11b.java {
package p2;
public class T6541s11b extends p1.T6541s11a {
private class p1 {} // hides a.p1
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 6.5.4.1-simple-11 FAILED