This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/12426] New: gcj allows access to private members from superclass
- From: "jsturm at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2003 21:49:43 -0000
- Subject: [Bug java/12426] New: gcj allows access to private members from superclass
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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.