[Bug java/12426] New: gcj allows access to private members from superclass
jsturm at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Sep 26 22:19:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12426
Summary: gcj allows access to private members from superclass
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jsturm at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
Given:
class A { private int a; }
class B extends A { int b() { return a; } }
"gcj -C A.java B.java" should not succeed. gij's verifier correctly rejects it.
More information about the Gcc-bugs
mailing list