This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/11075] Compiling cross-package inherited constants are rejected
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2004 02:43:08 -0000
- Subject: [Bug java/11075] Compiling cross-package inherited constants are rejected
- References: <20030603084231.11075.robin.garner@crsrehab.gov.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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