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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  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 ` bojan at antonovic dot com
  2005-03-07  0:59 ` bojan at antonovic dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bojan at antonovic dot com @ 2005-03-06 22:52 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2005-03-06 22:43 -------
Created an attachment (id=8346)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8346&action=view)
jar with class A1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351


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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bojan at antonovic dot com @ 2005-03-07  0:59 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From bojan at antonovic dot com  2005-03-06 22:44 -------
Created an attachment (id=8347)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8347&action=view)
jar with class A2


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351


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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: bojan at antonovic dot com @ 2005-03-07 17:05 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |18212
              nThis|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351


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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  2005-03-06 22:46 [Bug java/20351] New: compilation with a redundant jar fails, if output file specified bojan at antonovic dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-07 17:06 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-06 22:52 -------
Compiling two jars at the same time is known to be broken.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |normal
           Priority|P1                          |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351


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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  2005-03-06 22:46 [Bug java/20351] New: compilation with a redundant jar fails, if output file specified bojan at antonovic dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-08 16:40 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-08 09:56 -------
FWIW, with the new verifier enabled this seems to work just fine.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20351


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

* [Bug java/20351] compilation with a redundant jar fails, if output file specified
  2005-03-06 22:46 [Bug java/20351] New: compilation with a redundant jar fails, if output file specified bojan at antonovic dot com
                   ` (4 preceding siblings ...)
  2005-03-08 16:40 ` rmathew at gcc dot gnu dot org
@ 2005-03-09 12:39 ` rmathew at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: rmathew at gcc dot gnu dot org @ 2005-03-09 12:39 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From rmathew at gcc dot gnu dot org  2005-03-09 10:57 -------
Now that the new verifier has been enabled, this works quite fine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WORKSFORME


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