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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  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 ` pinskia at gcc dot gnu dot org
  2004-10-17  8:52 ` mark at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-16 22:17 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-16 22:17 -------
Can you attach the source?

-- 


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  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
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mark at gcc dot gnu dot org @ 2004-10-17  8:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mark at gcc dot gnu dot org  2004-10-17 08:52 -------
Created an attachment (id=7366)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7366&action=view)
Small ClassLoader test case


-- 


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  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
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-10-18 10:49 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |aph at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  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
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-18 14:07 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-18 14:07 -------
Subject: Bug 18036

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	aph@gcc.gnu.org	2004-10-18 14:07:42

Modified files:
	libjava        : ChangeLog 
	libjava/gnu/gcj/runtime: natStackTrace.cc 

Log message:
	2004-10-18  Andrew Haley  <aph@redhat.com>
	
	PR java/18036:
	* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
	and correct logic used to find interpreter.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3137&r2=1.3138
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/natStackTrace.cc.diff?cvsroot=gcc&r1=1.7&r2=1.8



-- 


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  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
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-18 14:26 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-18 14:26 -------
Subject: Bug 18036

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcj-abi-2-dev-branch
Changes by:	aph@gcc.gnu.org	2004-10-18 14:26:27

Modified files:
	libjava        : ChangeLog interpret.cc 
	libjava/gnu/gcj/runtime: natStackTrace.cc 

Log message:
	2004-10-18  Andrew Haley  <aph@redhat.com>
	
	PR java/18036:
	* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
	and correct logic used to find interpreter.
	
	2004-10-13  Andrew Haley  <aph@redhat.com>
	
	* interpret.cc (_Jv_InterpMethod::run): Initialize
	_Jv_StartOfInterpreter.
	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
	* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
	_Unwind_FindEnclosingFunction to discover whether PC is within the
	interpreter.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcj-abi-2-dev-branch&r1=1.2729.2.37&r2=1.2729.2.38
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/interpret.cc.diff?cvsroot=gcc&only_with_tag=gcj-abi-2-dev-branch&r1=1.40.18.7&r2=1.40.18.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/natStackTrace.cc.diff?cvsroot=gcc&only_with_tag=gcj-abi-2-dev-branch&r1=1.6&r2=1.6.20.1



-- 


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-18 14:39 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-18 14:39 -------
Fixed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-10-21 13:23 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From aph at gcc dot gnu dot org  2004-10-21 13:22 -------
*** Bug 16481 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hannes at helma dot at


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-10-21 13:42 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From aph at gcc dot gnu dot org  2004-10-21 13:42 -------
*** Bug 13468 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug libgcj/18036] Bad interaction between interpreter and Class.forName()
  2004-10-16 20:27 [Bug libgcj/18036] New: Bad interaction between interpreter and Class.forName() mark at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  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
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-01-05  9:59 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-01-05 09:59 -------
Subject: Bug 18036

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-rhl-branch
Changes by:	jakub@gcc.gnu.org	2005-01-05 09:59:01

Modified files:
	libjava        : ChangeLog Makefile.am Makefile.in interpret.cc 
	libjava/gnu/gcj/runtime: natStackTrace.cc 

Log message:
	2004-12-13  Jakub Jelinek  <jakub@redhat.com>
	
	Revert:
	2004-01-21  Tom Tromey  <tromey@redhat.com>
	PR java/13468:
	* Makefile.in: Rebuilt.
	* Makefile.am (interpret.lo): New target.
	
	2004-10-18  Andrew Haley  <aph@redhat.com>
	
	PR java/18036:
	* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Reorganize
	and correct logic used to find interpreter.
	
	2004-10-13  Andrew Haley  <aph@redhat.com>
	
	* interpret.cc (_Jv_InterpMethod::run): Initialize
	_Jv_StartOfInterpreter.
	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): Functions removed.
	(_Jv_StartOfInterpreter, _Jv_EndOfInterpreter): New variables.
	* gnu/gcj/runtime/natStackTrace.cc (fillInStackTrace): Use
	_Unwind_FindEnclosingFunction to discover whether PC is within the
	interpreter.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.2562.2.16.2.14&r2=1.2562.2.16.2.15
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.354.2.3.2.4&r2=1.354.2.3.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.378.2.3.2.4&r2=1.378.2.3.2.5
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/interpret.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.40.20.1&r2=1.40.20.2
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gnu/gcj/runtime/natStackTrace.cc.diff?cvsroot=gcc&only_with_tag=gcc-3_4-rhl-branch&r1=1.6&r2=1.6.22.1



-- 


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