public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/13493] New: extra '<clinit>' generated in object file.
@ 2003-12-26 14:23 guilhem at kaffe dot org
2003-12-26 15:25 ` [Bug java/13493] " guilhem at kaffe dot org
` (4 more replies)
0 siblings, 5 replies; 7+ messages in thread
From: guilhem at kaffe dot org @ 2003-12-26 14:23 UTC (permalink / raw)
To: gcc-bugs
a '<clinit>' is generated in the output file of gcc whereas it isn't present in
the class file. In that case it should not be enumerated as a declared method:
this can cause major troubles in the serialization logic of libjava which then
fails to produce a valid serialVersionUID. This seems to happen only in the
typical case of the following example:
public class C
{
static class D extends C
{
private static final String s = "hello";
}
}
If you try to compile this example, it will generate a static '<clinit>' method
in the inner class D, which should not happen as the class file doesn't have it.
--
Summary: extra '<clinit>' generated in object file.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: guilhem at kaffe dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] extra '<clinit>' generated in object file.
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
@ 2003-12-26 15:25 ` guilhem at kaffe dot org
2003-12-26 18:25 ` [Bug java/13493] [ABI] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: guilhem at kaffe dot org @ 2003-12-26 15:25 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet| |any
Keywords| |wrong-code
Version|unknown |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] [ABI] extra '<clinit>' generated in object file.
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
2003-12-26 15:25 ` [Bug java/13493] " guilhem at kaffe dot org
@ 2003-12-26 18:25 ` pinskia at gcc dot gnu dot org
2003-12-29 2:42 ` [Bug java/13493] " tromey at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-26 18:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-26 16:31 -------
Confirmed. The problem is that GCJ when generating native from source does create C.D.s really
statically, it has to do a store which causes this. When GCC generates from class files to native or
to class files, it produces no <clinit> at all, just like Sun's javac.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-12-26 16:31:43
date| |
Summary|extra '<clinit>' generated |[ABI] extra '<clinit>'
|in object file. |generated in object file.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] extra '<clinit>' generated in object file.
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
2003-12-26 15:25 ` [Bug java/13493] " guilhem at kaffe dot org
2003-12-26 18:25 ` [Bug java/13493] [ABI] " pinskia at gcc dot gnu dot org
@ 2003-12-29 2:42 ` tromey at gcc dot gnu dot org
2004-01-01 22:40 ` pinskia at gcc dot gnu dot org
2004-01-07 20:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2003-12-29 2:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From tromey at gcc dot gnu dot org 2003-12-29 00:31 -------
It isn't clear this is actually a bug.
Here's a nice discussion of some of the problems:
http://gcc.gnu.org/ml/java-patches/2002-q4/msg00036.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] extra '<clinit>' generated in object file.
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
` (2 preceding siblings ...)
2003-12-29 2:42 ` [Bug java/13493] " tromey at gcc dot gnu dot org
@ 2004-01-01 22:40 ` pinskia at gcc dot gnu dot org
2004-01-07 20:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-01 22:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-01 22:40 -------
Okay this is not an ABI bug but it still is a pressimize code generation, there is no need
for <clinit>.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
Keywords|ABI, wrong-code |pessimizes-code
Last reconfirmed|2003-12-26 16:31:43 |2004-01-01 22:40:08
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] extra '<clinit>' generated in object file.
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
` (3 preceding siblings ...)
2004-01-01 22:40 ` pinskia at gcc dot gnu dot org
@ 2004-01-07 20:21 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-01-07 20:21 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-01-07 20:21 -------
More than just that it can cause wrong-code, see PR 1259.
--
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |1259
nThis| |
Severity|enhancement |normal
Keywords| |wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug java/13493] extra '<clinit>' generated in object file.
[not found] <bug-13493-7610@http.gcc.gnu.org/bugzilla/>
@ 2007-01-09 20:48 ` tromey at gcc dot gnu dot org
0 siblings, 0 replies; 7+ messages in thread
From: tromey at gcc dot gnu dot org @ 2007-01-09 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from tromey at gcc dot gnu dot org 2007-01-09 20:46 -------
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.
Thanks.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13493
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-01-09 20:48 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-26 14:23 [Bug java/13493] New: extra '<clinit>' generated in object file guilhem at kaffe dot org
2003-12-26 15:25 ` [Bug java/13493] " guilhem at kaffe dot org
2003-12-26 18:25 ` [Bug java/13493] [ABI] " pinskia at gcc dot gnu dot org
2003-12-29 2:42 ` [Bug java/13493] " tromey at gcc dot gnu dot org
2004-01-01 22:40 ` pinskia at gcc dot gnu dot org
2004-01-07 20:21 ` pinskia at gcc dot gnu dot org
[not found] <bug-13493-7610@http.gcc.gnu.org/bugzilla/>
2007-01-09 20:48 ` 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).