David Holmes wrote:
I found a minor bug in java.util.Map: the inner class Entry
has to be public. Diff is attached.


All interface members are implicitly public. The preferred style is to
not explicitly define them as public.

Well, I prefer to be explicit. But this goes beyond a matter of taste. Building with kjc, I get the following errors:
---
../java/beans/PropertyChangeSupport.java:1: error:Unaccessible class "java/util/Map/Entry" can not be imported [JLS 7.5.1]
../java/beans/VetoableChangeSupport.java:1: error:Unaccessible class "java/util/Map/Entry" can not be imported [JLS 7.5.1]
../javax/swing/JDesktopPane.java:62: error:Cannot find class "AccessibleJComponent" [JLS 8]
---
If I add the "public", the first two errors disappear. It may be a compiler bug. I'll try to nail it down.


Matthias

--
Matthias Pfisterer      <mailto:[EMAIL PROTECTED]>
Reuchlinstrasse 28      phone ++49-711-62 87 12
D-70176 Stuttgart       (in Deutschland 0711-62 87 12)
GERMANY

Work like you don't need the money.
Love like you've never been hurt.
Dance like nobody is watching.

Java Sound Resources (examples, FAQ, applications):
http://www.jsresources.org/

Tritonus, the open source implementation of the Java Sound API:
http://www.tritonus.org/
--------------------------------------------------------------



_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to