public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/17733] New: class read for the second time
@ 2004-09-29 18:36 konqueror at gmx dot de
2004-09-30 6:18 ` [Bug java/17733] " aph at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: konqueror at gmx dot de @ 2004-09-29 18:36 UTC (permalink / raw)
To: java-prs
I just tried to compile a jar archive to a native library inside the source
tree where the jar got built. This resulted in the following error message:
gcj-4.0 -g -c jipsi-gcj.jar
de/lohndirekt/print/attribute/DefaultAttribute.java:0: fatal error: reading
class de.lohndirekt.print.attribute.DefaultAttribute for the second time
from ./de/lohndirekt/print/attribute/DefaultAttribute.class
compilation terminated.
My guess is that gcj reads the class once from the jar archive and once
directly from the build tree. strace confirms that its at least read from file
system. I guess this is wrong.
--
Summary: class read for the second time
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: konqueror at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
@ 2004-09-30 6:18 ` aph at gcc dot gnu dot org
2004-09-30 12:48 ` aph at gcc dot gnu dot org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-30 6:18 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-30 06:18 -------
There seems to be no attachment. I can't duplicate this with no jar file.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
2004-09-30 6:18 ` [Bug java/17733] " aph at gcc dot gnu dot org
@ 2004-09-30 12:48 ` aph at gcc dot gnu dot org
2004-09-30 12:49 ` aph at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-30 12:48 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-30 12:48 -------
.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |aph at gcc dot gnu dot org
|dot org |
Status|WAITING |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
2004-09-30 6:18 ` [Bug java/17733] " aph at gcc dot gnu dot org
2004-09-30 12:48 ` aph at gcc dot gnu dot org
@ 2004-09-30 12:49 ` aph at gcc dot gnu dot org
2004-09-30 15:40 ` aph 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-09-30 12:49 UTC (permalink / raw)
To: java-prs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (2 preceding siblings ...)
2004-09-30 12:49 ` aph at gcc dot gnu dot org
@ 2004-09-30 15:40 ` aph at gcc dot gnu dot org
2004-09-30 15:42 ` aph at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-30 15:40 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-30 15:40 -------
I can't duplicate this. I get:
gcj -g -c jipsi-gcj.jar
de/lohndirekt/print/attribute/ipp/printerdesc/defaults/NumberUpDefault.java:0:
error: cannot find file for class de.lohndirekt.print.attribute.DefaultAttribute
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (3 preceding siblings ...)
2004-09-30 15:40 ` aph at gcc dot gnu dot org
@ 2004-09-30 15:42 ` aph at gcc dot gnu dot org
2004-09-30 15:46 ` konqueror at gmx dot de
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-30 15:42 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-30 15:42 -------
Um, hold on that class is in the jarfile. Weird. I'm investigating.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (4 preceding siblings ...)
2004-09-30 15:42 ` aph at gcc dot gnu dot org
@ 2004-09-30 15:46 ` konqueror at gmx dot de
2004-09-30 16:09 ` aph at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: konqueror at gmx dot de @ 2004-09-30 15:46 UTC (permalink / raw)
To: java-prs
------- Additional Comments From konqueror at gmx dot de 2004-09-30 15:46 -------
You need to unzip the jar in a directory and then try to compile the jar in
there (the jar, not the class files directly).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (5 preceding siblings ...)
2004-09-30 15:46 ` konqueror at gmx dot de
@ 2004-09-30 16:09 ` aph at gcc dot gnu dot org
2004-10-05 14:55 ` cvs-commit at gcc dot gnu dot org
2004-10-05 15:50 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: aph at gcc dot gnu dot org @ 2004-09-30 16:09 UTC (permalink / raw)
To: java-prs
------- Additional Comments From aph at gcc dot gnu dot org 2004-09-30 16:09 -------
OK, I found the problem. The jarfile is very oddly constructed. It looks like
this:
META-INF/MANIFEST.MF
./de/lohndirekt/print/attribute/cups/PrinterType.class
./de/lohndirekt/print/attribute/cups/JobQuotaPeriod.class
./de/lohndirekt/print/attribute/cups/JobPageLimit.class
./de/lohndirekt/print/attribute/cups/JobKLimit.class
./de/lohndirekt/print/attribute/cups/DeviceUri.class
...
instead of:
META-INF/
META-INF/MANIFEST.MF
de/
de/lohndirekt/
de/lohndirekt/print/
de/lohndirekt/print/attribute/
de/lohndirekt/print/attribute/cups/
de/lohndirekt/print/attribute/cups/PrinterType.class
de/lohndirekt/print/attribute/cups/JobQuotaPeriod.class
de/lohndirekt/print/attribute/cups/JobPageLimit.class
...
which is why we never saw this problem before. We need to strip off the "./" at
the start of each name.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (6 preceding siblings ...)
2004-09-30 16:09 ` aph at gcc dot gnu dot org
@ 2004-10-05 14:55 ` cvs-commit at gcc dot gnu dot org
2004-10-05 15:50 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-05 14:55 UTC (permalink / raw)
To: java-prs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-10-05 14:55 -------
Subject: Bug 17733
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: aph@gcc.gnu.org 2004-10-05 14:55:40
Modified files:
gcc/java : ChangeLog jcf-parse.c
Log message:
2004-10-05 Andrew Haley <aph@redhat.com>
PR java/17779
* jcf-parse.c (parse_zip_file_entries): If a class has a
superclass and a TYPE_SIZE of zero, lay it out.
2004-09-30 Andrew Haley <aph@redhat.com>
PR java/17733
* jcf-parse.c (compute_class_name): Rewrite.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1478&r2=1.1479
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?cvsroot=gcc&r1=1.174&r2=1.175
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug java/17733] class read for the second time
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
` (7 preceding siblings ...)
2004-10-05 14:55 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-05 15:50 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 15:50 UTC (permalink / raw)
To: java-prs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-05 15:50 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17733
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-10-05 15:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-29 18:36 [Bug java/17733] New: class read for the second time konqueror at gmx dot de
2004-09-30 6:18 ` [Bug java/17733] " aph at gcc dot gnu dot org
2004-09-30 12:48 ` aph at gcc dot gnu dot org
2004-09-30 12:49 ` aph at gcc dot gnu dot org
2004-09-30 15:40 ` aph at gcc dot gnu dot org
2004-09-30 15:42 ` aph at gcc dot gnu dot org
2004-09-30 15:46 ` konqueror at gmx dot de
2004-09-30 16:09 ` aph at gcc dot gnu dot org
2004-10-05 14:55 ` cvs-commit at gcc dot gnu dot org
2004-10-05 15:50 ` pinskia 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).