public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/19870] New: gcj -C compiled code accessing private fields of inner classes from outer class give IllegalAccessError
@ 2005-02-10  3:56 mark at gcc dot gnu dot org
  2005-02-10  4:05 ` [Bug java/19870] " pinskia at gcc dot gnu dot org
                   ` (16 more replies)
  0 siblings, 17 replies; 25+ messages in thread
From: mark at gcc dot gnu dot org @ 2005-02-10  3:56 UTC (permalink / raw)
  To: gcc-bugs

The following compiled with jikes outputs 42.
Compiled with gcj -C and ran with gij gives a java.lang.IllegalAccessError

public class A
{
  public static class B
  {
    private static int i = 42;
  }

  public static void main(String[] args)
  {
    System.out.println(B.i);
  }
}

-- 
           Summary: gcj -C compiled code accessing private fields of inner
                    classes from outer class give IllegalAccessError
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mark at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
OtherBugsDependingO 18131
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19870


^ permalink raw reply	[flat|nested] 25+ messages in thread
[parent not found: <bug-19870-3639@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2007-01-09 20:51 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-10  3:56 [Bug java/19870] New: gcj -C compiled code accessing private fields of inner classes from outer class give IllegalAccessError mark at gcc dot gnu dot org
2005-02-10  4:05 ` [Bug java/19870] " pinskia at gcc dot gnu dot org
2005-02-10  5:36 ` pinskia at gcc dot gnu dot org
2005-02-10  6:11 ` pinskia at gcc dot gnu dot org
2005-02-10  6:16 ` pinskia at gcc dot gnu dot org
2005-03-09 18:22 ` [Bug java/19870] gcj -C doesn't generate accessors for private members in inner class mckinlay at redhat dot com
2005-05-19 22:57 ` rmathew at gcc dot gnu dot org
2005-05-23  7:46 ` [Bug java/19870] gcj -C doesn't generate accessors for private members across nested class boundaries rmathew at gcc dot gnu dot org
2005-05-25  7:04 ` rmathew at gcc dot gnu dot org
2005-05-26  8:08 ` rmathew at gcc dot gnu dot org
2005-05-27  5:15 ` cvs-commit at gcc dot gnu dot org
2005-05-27  5:39 ` cvs-commit at gcc dot gnu dot org
2005-05-27  6:04 ` rmathew at gcc dot gnu dot org
2005-06-19  3:23 ` rmathew at gcc dot gnu dot org
2005-08-14 15:51 ` rmathew at gcc dot gnu dot org
2005-08-16 18:24 ` cvs-commit at gcc dot gnu dot org
2005-08-16 18:39 ` cvs-commit at gcc dot gnu dot org
2005-08-16 18:44 ` rmathew at gcc dot gnu dot org
     [not found] <bug-19870-3639@http.gcc.gnu.org/bugzilla/>
2005-10-05 19:36 ` cvs-commit at gcc dot gnu dot org
2005-10-05 19:41 ` pinskia at gcc dot gnu dot org
2005-12-22 16:45 ` mark at gcc dot gnu dot org
2005-12-23  5:29 ` rmathew at gcc dot gnu dot org
2006-03-11  3:17 ` mmitchel at gcc dot gnu dot org
2006-06-07 18:18 ` mckinlay at redhat dot com
2007-01-09 20:56 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).