[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: [zzdev] Re: [Gzigzag-commits] gzigzag/src/gfx GraphicsList.java
- To: Tuomas Lukka <lukka@xxxxxxxxxx>
- Subject: Re: [zzdev] Re: [Gzigzag-commits] gzigzag/src/gfx GraphicsList.java
- From: "B. Fallenstein" <b.fallenstein@xxxxxx>
- Date: Fri, 04 May 2001 18:45:07 +0200
- Cc: zzdev@xxxxxxxxxx
- References: <E14vGso-0006MN-00@xxxxxxxxxxxxxxxxxxxxxxxxxxx> <20010504072454.A15672@xxxxxxxxxxxxxx>
Tuomas Lukka wrote:
>
> On Thu, May 03, 2001 at 04:02:54AM -0700, Benjamin Fallenstein wrote:
> > Update of /cvsroot/gzigzag/gzigzag/src/gfx
> > In directory usw-pr-cvs1:/tmp/cvs-serv24445
> >
> > Modified Files:
> > GraphicsList.java
> > Log Message:
> > Comment out Java 2-stuff
>
> ... and now it won't compile under java 2. :(
>
> 30. public class GraphicsList extends Graphics {
> <---------->
> *** Error: The abstract method "void drawString(java.text.AttributedCharacterIterator $1, int $2, int $3);", inherited from type "java/awt/Graphics", is not implemented in the non-abstract class "org/gzigzag/gfx/GraphicsList".
>
> Most annoying breakage by the Java API. How should we resolve this?
The only idea that comes readily to mind is having two separate versions
& the Makefile deciding which one to use (or, having it be an
autogenerated file, and have some kind of detector for the Java
version). Hmmmm...
Well, we could also simply add a class
java.text.AttributedCharacterIterator to SRC in the makefile if we
detect 1.1.
I dunno, it's not satisfying. But I've tried some other possibilities,
using Object instead of AttributedCharacterIterator, and imporing an
AttributedCharacterIterator from another package after importing it from
java.text (so that the former would be used if present, and the latter
otherwise), but neither option does work.
-b.