public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
From: "bojan at antonovic dot com" <gcc-bugzilla@gcc.gnu.org> To: java-prs@gcc.gnu.org Subject: [Bug java/20351] New: compilation with a redundant jar fails, if output file specified Date: Sun, 06 Mar 2005 22:46:00 -0000 [thread overview] Message-ID: <20050306224108.20351.bojan@antonovic.com> (raw) This specifies a sub-bug of 18212. The test-case is simple, not the severity! Given are 2 independet(!) and (almost) empty classes: A1 and A2. A1 has the main() method. A1 is in jar J1, A2 in jar J2. The bug: Compiling the jar J1 by giving the output file by -o fails, when compiled with J2. failing: gcj -o foo --classpath=J2.jar:. --main=A1 J1.jar J2.jar gcj -o foo --classpath=J2.jar:J1.jar --main=A1 J1.jar J2.jar working: gcj -o foo --main=A1 J1.jar J2.jar gcj -o foo --classpath=J2.jar:. --main=A1 J1.jar gcj -o foo --main=A1 J1.jar gcj --classpath=J2.jar:. --main=A1 J1.jar J2.jar gcj --classpath=J2.jar:. --main=A1 J1.jar gcj --main=A1 J1.jar J2.jar gcj --main=A1 J1.jar When failing, it reports: java/awt/Component.java: In class `java.awt.Component': java/awt/Component.java: In method `java.awt.Component.eventTypeEnabled(int)': java/awt/Component.java:4127: error: expected type 'int' but stack contains 'void' java/awt/Component.java:4127: error: verification error at PC=311 java/awt/Component.java:4127: error: types could not be merged ObjectInputStream.java: In class `java.io.ObjectInputStream$3': ObjectInputStream.java: In method `java.io.ObjectInputStream$3.getField(java.lang.String,java.lang.Class)': ObjectInputStream.java:1257: error: verification error at PC=45 ObjectInputStream.java:1257: error: loading local variable 6 which has unknown type java/lang/Class.java:0: confused by earlier errors, bailing out The source codes: 1) A1.java public class A1 { public static void main(String args[]) { } } 2) A2.java: public class A2 { } -- Summary: compilation with a redundant jar fails, if output file specified Product: gcc Version: 3.4.3 Status: UNCONFIRMED Severity: critical Priority: P1 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bojan at antonovic dot com 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=20351
next reply other threads:[~2005-03-06 22:41 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-03-06 22:46 bojan at antonovic dot com [this message] 2005-03-06 22:52 ` [Bug java/20351] " bojan at antonovic dot com 2005-03-07 0:59 ` bojan at antonovic dot com 2005-03-07 17:05 ` bojan at antonovic dot com 2005-03-07 17:06 ` pinskia at gcc dot gnu dot org 2005-03-08 16:40 ` rmathew at gcc dot gnu dot org 2005-03-09 12:39 ` rmathew at gcc dot gnu dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20050306224108.20351.bojan@antonovic.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=java-prs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).