This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/11075] Compiling cross-package inherited constants are rejected


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]