classpath
[Top][All Lists]
Advanced

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

Re: bug in java.util.Map


From: Matthias Pfisterer
Subject: Re: bug in java.util.Map
Date: Wed, 21 Jan 2004 10:39:29 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.0.0) Gecko/20020623 Debian/1.0.0-0.woody.1

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:address@hidden>
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/
--------------------------------------------------------------





reply via email to

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