[Top][All Lists]

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

Re: bug in java.util.Map

From: Eric Blake
Subject: Re: bug in java.util.Map
Date: Tue, 20 Jan 2004 21:52:59 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

[Shoot, I hit send too early.]

For that matter, you should delete the static modifier. Inner classes declared in an interface are implicitly 'public static'.

Matthias Pfisterer wrote:


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



Index: java/util/
RCS file: /cvsroot/classpath/classpath/java/util/,v
retrieving revision 1.11
diff -u -r1.11
--- java/util/  15 Oct 2003 12:29:35 -0000      1.11
+++ java/util/  20 Jan 2004 20:34:32 -0000
@@ -264,7 +264,7 @@
    * @since 1.2
    * @status updated to 1.4
-  static interface Entry
+  public static interface Entry
      * Get the key corresponding to this entry.

Someday, I might put a cute statement here.

Eric Blake             address@hidden

reply via email to

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