This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/309: private field access modifier not implemented correctly
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/309: private field access modifier not implemented correctly
- From: bryce at albatross dot co dot nz
- Date: 9 Aug 2000 10:48:41 -0000
- Reply-To: bryce at albatross dot co dot nz
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, bryce@albatross.co.nz
>Number: 309
>Category: gcj
>Synopsis: private field access modifier not implemented correctly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 09 03:50:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Bryce McKinlay
>Release: unknown-1.0
>Organization:
>Environment:
any
>Description:
It is illegal to access a private field in any other class
(except for inner and enclosing classes). The following code
is illegal, but gcj does not complain.
class Private
{
private int i;
}
class Sub extends Private
{
void b()
{
int j = i;
}
}
>How-To-Repeat:
compile the test case
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: