gcj/327: java.awt.Component error with gcj from CVS - Package mismatch
mark@klomp.org
mark@klomp.org
Mon Aug 21 17:00:00 GMT 2000
>Number: 327
>Category: gcj
>Synopsis: java.awt.Component error with gcj from CVS - Package mismatch
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 21 17:00:01 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the Java-prs
mailing list