java/1353: java.awt.Component error with gcj from CVS - Package mismatch
mark@klomp.org
mark@klomp.org
Wed Dec 20 12:25:00 GMT 2000
>Number: 1353
>Category: java
>Synopsis: java.awt.Component error with gcj from CVS - Package mismatch
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:19:17 PST 2000
>Closed-Date: Tue Aug 22 08:39:48 PDT 2000
>Last-Modified: Tue Aug 22 08:40:00 PDT 2000
>Originator: mark@klomp.org
>Release: gcc version 2.96 20000821 (experimental)
>Organization:
>Environment:
>Description:
When building libgcj from CVS I get the following error:
gcj -fassume-compiled -L/home/mark/src/libgcj-obj/i586-pc-linux-gnu/libjava -g -ffloat-store -c -fPIC ../../../libgcj/libjava/java/awt/Component.java -o java/awt/.libs/Component.lo
../../../libgcj/libjava/java/awt/Component.java: In class `java.awt.Component':
../../../libgcj/libjava/java/awt/Component.java: In method `getColorModel()':
../../../libgcj/libjava/java/awt/Component.java:368: Incompatible type for `return'. Can't convert `java.awt.image.ColorModel' to `java.awt.ColorModel'.
return config.getColorModel();
^
../../../libgcj/libjava/java/awt/Component.java:370: Incompatible type for `return'. Can't convert `java.awt.image.ColorModel' to `java.awt.ColorModel'.
return getToolkit().getColorModel();
^
2 errors
When I include a explicit import at the end of all the other import statements
it does compile. (import java.awt.image.ColorModel;)
But this import should not be necessary since there is already an
import java.awt.image.*;
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Formerly PR gcj/327
From: Tom Tromey <tromey@cygnus.com>
To: mark@klomp.org
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/327: java.awt.Component error with gcj from CVS - Package mismatch
Date: 21 Aug 2000 18:10:50 -0600
>>>>> "Mark" == mark <mark@klomp.org> writes:
Mark> ../../../libgcj/libjava/java/awt/Component.java:368: Incompatible type for `return'. Can't convert `java.awt.image.ColorModel' to `java.awt.ColorModel'.
Hi Mark. You probably have an old java/awt/ColorModel.class in your
build tree. This causes problems.
Do a `make clean', then find . -name '*.class' | xargs rm.
Then do a build.
If that works then that was your problem and we can close this PR.
Tom
From: Mark Wielaard <mark@klomp.org>
To: Tom Tromey <tromey@cygnus.com>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/327: java.awt.Component error with gcj from CVS - Package mismatch
Date: Tue, 22 Aug 2000 02:10:29 +0200
Hi,
On Mon, Aug 21, 2000 at 06:10:50PM -0600, Tom Tromey wrote:
>
> Hi Mark. You probably have an old java/awt/ColorModel.class in your
> build tree. This causes problems.
No. It it is a fresh new build tree. (And it is still compiling :)
I did a find -name ColorModel.class in the dir and the only one found is
./i586-pc-linux-gnu/libjava/java/awt/image/ColorModel.class
Sorry,
Mark
From: Mark Wielaard <mark@klomp.org>
To: Tom Tromey <tromey@cygnus.com>
Cc: java-gnats@sourceware.cygnus.com
Subject: Re: gcj/327: java.awt.Component error with gcj from CVS - Package mismatch
Date: Tue, 22 Aug 2000 02:25:40 +0200
Hi,
On Tue, Aug 22, 2000 at 02:10:29AM +0200, Mark Wielaard wrote:
> On Mon, Aug 21, 2000 at 06:10:50PM -0600, Tom Tromey wrote:
> >
> > Hi Mark. You probably have an old java/awt/ColorModel.class in your
> > build tree. This causes problems.
>
> No. It it is a fresh new build tree. (And it is still compiling :)
> I did a find -name ColorModel.class in the dir and the only one found is
> ./i586-pc-linux-gnu/libjava/java/awt/image/ColorModel.class
But I do have a java/awt/ColorModel.class in my current
/usr/local/gcc/share/libgcj.zip. So that is probably the problem.
Cheers,
Mark
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Tue Aug 22 08:39:48 2000
State-Changed-Why:
I'm closing this. We know that the bug is that the
installed libgcj.zip had java.awt.ColorModel, which
messed things up.
From: tromey@cygnus.com
To: apbianco@cygnus.com, java-gnats@sourceware.cygnus.com, mark@klomp.org
Cc:
Subject: Re: gcj/327
Date: 22 Aug 2000 15:39:48 -0000
Synopsis: java.awt.Component error with gcj from CVS - Package mismatch
State-Changed-From-To: open->closed
State-Changed-By: tromey
State-Changed-When: Tue Aug 22 08:39:48 2000
State-Changed-Why:
I'm closing this. We know that the bug is that the
installed libgcj.zip had java.awt.ColorModel, which
messed things up.
http://sources.redhat.com/cgi-bin/gnatsweb.pl?cmd=view&pr=327&database=java
>Unformatted:
More information about the Gcc-prs
mailing list