public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug java/20502] New: gcj failure if .jar contains same .class twice @ 2005-03-16 18:52 tromey at gcc dot gnu dot org 2005-03-16 19:01 ` [Bug java/20502] " mckinlay at redhat dot com ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: tromey at gcc dot gnu dot org @ 2005-03-16 18:52 UTC (permalink / raw) To: gcc-bugs As mentioned here: https://www.redhat.com/archives/fedora-devel-java-list/2005-March/msg00178.html gcj will fail if asked to compile a .jar that contains a given .class twice. At the very least it should emit a better error message. -- Summary: gcj failure if .jar contains same .class twice Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: tromey at gcc dot gnu dot org 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=20502 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/20502] gcj failure if .jar contains same .class twice 2005-03-16 18:52 [Bug java/20502] New: gcj failure if .jar contains same .class twice tromey at gcc dot gnu dot org @ 2005-03-16 19:01 ` mckinlay at redhat dot com 2005-03-16 19:33 ` mckinlay at redhat dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: mckinlay at redhat dot com @ 2005-03-16 19:01 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mckinlay at redhat dot com 2005-03-16 19:01 ------- I think in general, if a .jar is valid for the VM, then we should do our best to compile it without an error. So - we should just ignore (well, issue a warning perhaps) duplicately-named class files in a jar. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2005-03-16 19:01:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20502 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/20502] gcj failure if .jar contains same .class twice 2005-03-16 18:52 [Bug java/20502] New: gcj failure if .jar contains same .class twice tromey at gcc dot gnu dot org 2005-03-16 19:01 ` [Bug java/20502] " mckinlay at redhat dot com @ 2005-03-16 19:33 ` mckinlay at redhat dot com 2005-03-17 0:02 ` pinskia at gcc dot gnu dot org 2005-03-17 15:55 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: mckinlay at redhat dot com @ 2005-03-16 19:33 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From mckinlay at redhat dot com 2005-03-16 19:33 ------- I wonder why this check doesn't catch it (jcf-parse.c): if (CLASS_PARSED_P (current_class)) { /* FIXME - where was first time */ fatal_error ("reading class %s for the second time from %s", IDENTIFIER_POINTER (DECL_NAME (TYPE_NAME (current_class))), jcf->filename); } CLASS_PARSED_P (current_class) = 1; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20502 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/20502] gcj failure if .jar contains same .class twice 2005-03-16 18:52 [Bug java/20502] New: gcj failure if .jar contains same .class twice tromey at gcc dot gnu dot org 2005-03-16 19:01 ` [Bug java/20502] " mckinlay at redhat dot com 2005-03-16 19:33 ` mckinlay at redhat dot com @ 2005-03-17 0:02 ` pinskia at gcc dot gnu dot org 2005-03-17 15:55 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-03-17 0:02 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-17 00:01 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2005-03-16 19:01:19 |2005-03-17 00:01:46 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20502 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug java/20502] gcj failure if .jar contains same .class twice 2005-03-16 18:52 [Bug java/20502] New: gcj failure if .jar contains same .class twice tromey at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-03-17 0:02 ` pinskia at gcc dot gnu dot org @ 2005-03-17 15:55 ` cvs-commit at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-03-17 15:55 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-03-17 15:54 ------- Subject: Bug 20502 CVSROOT: /cvs/gcc Module name: gcc Changes by: bryce@gcc.gnu.org 2005-03-17 15:54:24 Modified files: gcc/java : ChangeLog jcf-parse.c Log message: 2005-03-17 Bryce McKinlay <mckinlay@redhat.com> PR java/20502 * jcf-parse.c (duplicate_class_warning): New function. (java_parse_file): Call duplicate_class_warning if CLASS_FROM_CURRENTLY_COMPILED_P is already set. (parse_zip_file_entries): Likewise. Also set CLASS_FROM_CURRENTLY_COMPILED_P. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1574&r2=1.1575 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jcf-parse.c.diff?cvsroot=gcc&r1=1.183&r2=1.184 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20502 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-03-17 15:55 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-03-16 18:52 [Bug java/20502] New: gcj failure if .jar contains same .class twice tromey at gcc dot gnu dot org 2005-03-16 19:01 ` [Bug java/20502] " mckinlay at redhat dot com 2005-03-16 19:33 ` mckinlay at redhat dot com 2005-03-17 0:02 ` pinskia at gcc dot gnu dot org 2005-03-17 15:55 ` 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).