public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName()
@ 2004-10-16 20:27 mark at gcc dot gnu dot org
  2004-10-16 22:17 ` [Bug libgcj/18036] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-16 20:27 UTC (permalink / raw)
  To: java-prs

The following code creates a user defined classloader which is then used to load
a simple class C from byte code. An instance of this class is created and from
this instance Class.forName("C") is called. This should result in the same class
object from the same (user defined) classloader.

It does work when compiled to native code. But it fails when compiled to byte
code and run with gij.
With gij 3.4 it works correctly.
Current CVS gcj (GCC) 4.0.0 20041016 (experimental) fails

Expected output:
true
true
true

-- 
           Summary: Bad interaction between interpreter and Class.forName()
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        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
  GCC host triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2005-01-05  9:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
2004-10-16 22:17 ` [Bug libgcj/18036] " pinskia at gcc dot gnu dot org
2004-10-17  8:52 ` mark at gcc dot gnu dot org
2004-10-18 10:49 ` aph at gcc dot gnu dot org
2004-10-18 14:07 ` cvs-commit at gcc dot gnu dot org
2004-10-18 14:26 ` cvs-commit at gcc dot gnu dot org
2004-10-18 14:39 ` pinskia at gcc dot gnu dot org
2004-10-21 13:23 ` aph at gcc dot gnu dot org
2004-10-21 13:42 ` aph at gcc dot gnu dot org
2005-01-05  9:59 ` cvs-commit 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).