public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* java/9547: member type access not respected
@ 2003-02-03 18:06 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2003-02-03 18:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9547
>Category:       java
>Synopsis:       member type access not respected
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 03 18:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Tom Tromey
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
Right now gcj will let a subclass see member type defined
in a superclass, even if that member type has default
access protection and the two classes are in different
packages.

For instance, this code compiles but should not.

package one;

import two.*;

public class o extends t
{
  boolean doit(Object x)
  {
    return x instanceof Res;
  }
}
package two;

public class t
{
  class Res
  {
  }
}


>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-03 18:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 18:06 java/9547: member type access not respected tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).