commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: classpath ./ChangeLog java/awt/AlphaComposite.java


From: Eric Blake
Subject: Re: classpath ./ChangeLog java/awt/AlphaComposite.java
Date: Wed, 08 May 2002 11:54:00 -0600

So, do you want to file this gcj bug in GNATS, or shall I?

By simple name, the compiler should perform name resolution and detect
that the nested class Entry is inherited.  But by the qualified name
Map.Entry, the compiler must find either a package named Map (none
exists) or a class by that name which is in scope (hence the required
import).  The name Map is not inherited, even though LinkedHashMap
implements Map.

Another thing to check is whether a non-canonical class name works
correctly:
  protected boolean removeEldestEntry(LinkedHashMap.Entry eldest) {...}

LinkedHashMap.Entry should resolve to the canonical name
java.util.Map.Entry.

Mark Wielaard wrote:
> 
> Hi,
> 
> On Wed, 2002-05-08 at 18:41, Eric Blake wrote:
> >
> >       * java/awt/AlphaComposite.java: Import Map, so workaround works.
> 
> Sorry, should have tested against jikes.
> Strangely this (not importing Map) does work with gcj 3.1.
> Probably because LinkedHashMap implements Map.
> 
> Mark

-- 
This signature intentionally left boring.

Eric Blake             address@hidden
  BYU student, free software programmer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]