public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/25265]  New: linking BC-compiled classes with incompatible changes
@ 2005-12-05 14:00 thebohemian at gmx dot net
  2005-12-05 14:03 ` [Bug libgcj/25265] " thebohemian at gmx dot net
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: thebohemian at gmx dot net @ 2005-12-05 14:00 UTC (permalink / raw)
  To: java-prs

Imagine the following situation:

class T {
  void test(){
       M.staticMethod(); // a
       new M().method(); // b
       M.staticField = "FOO"; // c
       new M().field = "FOO"; // d
  }
}

class M{
   static void staticMethod(){}
   void method(){}
   static String staticField;
   String field;
}

Compile this and then replace the class file of M with the compiled code of
this class: class M{}

The JDK has no problems loading the T class and when running each the statement
*on its own* it would throw a NoSuchMethodError (case a & b) or a
NoSuchFieldError (case c & d).

GIJ should do the same.


-- 
           Summary: linking BC-compiled classes with incompatible changes
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: thebohemian at gmx dot net


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-25  9:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-05 14:00 [Bug libgcj/25265] New: linking BC-compiled classes with incompatible changes thebohemian at gmx dot net
2005-12-05 14:03 ` [Bug libgcj/25265] " thebohemian at gmx dot net
2005-12-05 14:37 ` thebohemian at gmx dot net
2005-12-05 21:53 ` thebohemian at gmx dot net
2005-12-06 20:19 ` aph at gcc dot gnu dot org
2005-12-08 14:40 ` aph at gcc dot gnu dot org
2005-12-08 14:44 ` aph at gcc dot gnu dot org
2005-12-08 15:32 ` aph at gcc dot gnu dot org
2006-05-25  9:56 ` aph 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).