public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/24321] New: instanceof erroneously causes class initialization
@ 2005-10-11 21:59 tromey at gcc dot gnu dot org
2005-10-11 22:03 ` [Bug libgcj/24321] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2005-10-11 21:59 UTC (permalink / raw)
To: gcc-bugs
Consider this program:
public class iof {
static class Z {
static {
System.out.println("init");
}
}
public static Object x () { return new Object(); }
public static void main(String[] args)
{
System.out.println(x() instanceof Z);
}
}
With gcj this prints "init".
With the JDK it does not.
--
Summary: instanceof erroneously causes class initialization
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tromey at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
@ 2005-10-11 22:03 ` pinskia at gcc dot gnu dot org
2005-10-11 22:05 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-11 22:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-11 22:03 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-10-11 22:03:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
2005-10-11 22:03 ` [Bug libgcj/24321] " pinskia at gcc dot gnu dot org
@ 2005-10-11 22:05 ` pinskia at gcc dot gnu dot org
2005-10-16 0:40 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-11 22:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2005-10-11 22:05 -------
Hmm, when compiled to native it works but not when using gij.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
2005-10-11 22:03 ` [Bug libgcj/24321] " pinskia at gcc dot gnu dot org
2005-10-11 22:05 ` pinskia at gcc dot gnu dot org
@ 2005-10-16 0:40 ` pinskia at gcc dot gnu dot org
2006-02-28 20:53 ` tromey at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16 0:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-10-16 00:40 -------
Note -noverify does not help with this case unlike PR 17021.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-10-16 0:40 ` pinskia at gcc dot gnu dot org
@ 2006-02-28 20:53 ` tromey at gcc dot gnu dot org
2006-03-01 16:01 ` tromey at gcc dot gnu dot org
2006-03-01 16:29 ` tromey at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-02-28 20:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from tromey at gcc dot gnu dot org 2006-02-28 20:53 -------
Testing a patch.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |tromey at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-01-15 21:12:46 |2006-02-28 20:53:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-02-28 20:53 ` tromey at gcc dot gnu dot org
@ 2006-03-01 16:01 ` tromey at gcc dot gnu dot org
2006-03-01 16:29 ` tromey at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-01 16:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tromey at gcc dot gnu dot org 2006-03-01 16:01 -------
Subject: Bug 24321
Author: tromey
Date: Wed Mar 1 16:01:34 2006
New Revision: 111603
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111603
Log:
PR java/24321:
* testsuite/libjava.lang/pr24321.java: New file.
* testsuite/libjava.lang/pr24321.out: New file.
* java/lang/natClass.cc (isInstance): Don't initialize class.
(isAssignableFrom): Likewise.
Added:
trunk/libjava/testsuite/libjava.lang/pr24321.java
trunk/libjava/testsuite/libjava.lang/pr24321.out
Modified:
trunk/libjava/ChangeLog
trunk/libjava/java/lang/natClass.cc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug libgcj/24321] instanceof erroneously causes class initialization
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-03-01 16:01 ` tromey at gcc dot gnu dot org
@ 2006-03-01 16:29 ` tromey at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2006-03-01 16:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from tromey at gcc dot gnu dot org 2006-03-01 16:29 -------
Fix checked in to trunk.
This may be a good 4.1.1 candidate.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24321
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-03-01 16:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-11 21:59 [Bug libgcj/24321] New: instanceof erroneously causes class initialization tromey at gcc dot gnu dot org
2005-10-11 22:03 ` [Bug libgcj/24321] " pinskia at gcc dot gnu dot org
2005-10-11 22:05 ` pinskia at gcc dot gnu dot org
2005-10-16 0:40 ` pinskia at gcc dot gnu dot org
2006-02-28 20:53 ` tromey at gcc dot gnu dot org
2006-03-01 16:01 ` tromey at gcc dot gnu dot org
2006-03-01 16:29 ` 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).