public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20351] New: compilation with a redundant jar fails, if output file specified
@ 2005-03-06 22:46 bojan at antonovic dot com
  2005-03-06 22:52 ` [Bug java/20351] " bojan at antonovic dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: bojan at antonovic dot com @ 2005-03-06 22:46 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-03-09 10:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-06 22:46 [Bug java/20351] New: compilation with a redundant jar fails, if output file specified bojan at antonovic dot com
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

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).