[Bug java/11075] Compiling cross-package inherited constants are rejected
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat May 22 03:31:00 GMT 2004
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-21 02:43 -------
The ICE is gone on the mainline but it is rejected unless you compile P/a.java and P/
b.java to *.class files.
./P/b.java:3: error: Can't access class `P.a'. Only public classes and interfaces in other
packages can be accessed.
public interface b { static int B = a.A; }
^
./P/b.java:3: error: Can't access package-private field `P.a.A' from `Q.c'.
public interface b { static int B = a.A; }
^
2 errors
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |rejects-valid
Last reconfirmed|2003-08-03 21:12:54 |2004-05-21 02:43:07
date| |
Summary|ICE compiling cross-package |Compiling cross-package
|inherited constants |inherited constants are
| |rejected
Target Milestone|--- |3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11075
More information about the Gcc-bugs
mailing list