java/4467: Ambiguous name resolution problem

bryce@gcc.gnu.org bryce@gcc.gnu.org
Wed Oct 3 23:46:00 GMT 2001


>Number:         4467
>Category:       java
>Synopsis:       Ambiguous name resolution problem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Wed Oct 03 23:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     bryce@gcc.gnu.org
>Release:        gcc version 3.1 20011003 (experimental)
>Organization:
>Environment:

>Description:
GCJ should reject this illegal code, because name resolution
should stop at the innermost scope which defines "X". See
JLS 6.5.2.

package X;

class Y {}

class X
{
  void a(X.Y xy) {}
}

>How-To-Repeat:

>Fix:

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



More information about the Gcc-prs mailing list