bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/27128] Collections.unmodifiableMap() can be modified


From: gcc at pcedev dot com
Subject: [Bug classpath/27128] Collections.unmodifiableMap() can be modified
Date: 23 Apr 2006 17:23:47 -0000


------- Comment #2 from gcc at pcedev dot com  2006-04-23 17:23 -------
I was wrong in my understanding of the problem. It really dwells in the
toArray() (and toArray(Object[])) method of the set representing the entries of
a map. In this case, the set must be unmodifiable, but its content too, which
is not enforced by using UnmodifiableSet.
I just proposed a patch on the ml to override the toArray* method of the
UnmodifiableEntrySet to return unmodifiable version of MapEntry.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27128





reply via email to

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