java/8740: Cross-package inheritance of static member classes broken

gbenson@redhat.com gbenson@redhat.com
Thu Nov 28 04:16:00 GMT 2002


>Number:         8740
>Category:       java
>Synopsis:       Cross-package inheritance of static member classes broken
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 28 04:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     gbenson@redhat.com
>Release:        gcc 3.2
>Organization:
>Environment:
Red Hat Linux 8.0
>Description:
If you have the foo/bar/Foo.java:

| package foo.bar;
| 
| public class Foo {
|     public static class Bar {
|     }
| }

and foo/baz/Baz.java:

| package foo.baz;
| import foo.bar.Foo;
| 
| public class Baz extends Foo.Bar {
| }

then compilation of the latter will fail with the message:

| foo/baz/Baz.java:5: Superclass `Foo.Bar' of class `foo.baz.Baz' not found.
|    public class Baz extends Foo.Bar {
|                             ^
| 1 error
>How-To-Repeat:
tar xfz test.tar.gz # attached
gcj foo/baz/Baz.java
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/gzip; name="test.tar.gz"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.tar.gz"

H4sICIsH5j0CA3Rlc3QudGFyAO3UsU7DMBSFYc9+Cj9BYqduPLB16Hu4IakKBUdJiiAo785tCpVg
gIlWlf5vseSbybnnNCnlm9jl65Syh/gS1T+wztrSe2VFCO7beeQKq2xYBuftYnG8d4UvS2WsuoBD
P8TOGLWN3dtv3/01v1FtrB7jtjaN/H/Zgzut28Nmv6tMtY99b2QtzLs24vNaXms4T1fycqfppKf5
1Ao3pZnzP+arOF4v/86f8++L5Zz/UJD/y+d/lPzvntrUDV+FkEkD/CwF2RVTvw718/1cENmpBiay
DwAAAAAAAAAAAAAAcAUf8yY1pwAoAAA=



More information about the Java-prs mailing list