[Top][All Lists]
[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: |
19 Apr 2006 15:12:23 -0000 |
------- Comment #1 from gcc at pcedev dot com 2006-04-19 15:12 -------
The scope of the bug you spotted is wider than this particular operation.
In Collection.unmodifiableCollection (which several unmodifiable* class
extends), the toArray() and toArray(Object[]) method are simply delegating to
the wrapped object toArray method. Some more wrapping should be done there or a
defensive copy maybe.
--
gcc at pcedev dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |gcc at pcedev dot com
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-04-19 15:12:23
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27128