-
Bug
-
Resolution: Not an Issue
-
P3
-
5.0
-
None
-
sparc
-
solaris_9
TabularDataSupport.putAll(Map) is able to throw KeyAlreadyExistsException in two cases :
[...]
KeyAlreadyExistsException - if the index for a value in t, calculated according to this TabularData instance's TabularType definition already maps to an existing value in this instance, or two values in t have the same index.
[...]
What I did is :
[1]
TabulaDataSupport tds = new TabulaDataSupport(tabType);
tds.put(compData);
HashMap map = new HashMap();
map.put("ignored", compData);
tds.putAll(map); ==> I get KeyAlreadyExistsException :-)
[2]
TabulaDataSupport tds = new TabulaDataSupport(tabType);
HashMap map = new HashMap();
map.put("ignored-1", compData);
map.put("ignored-2", compData);
tds.putAll(map); ==> I do not get KeyAlreadyExistsException :-(
###@###.### 2005-2-11 07:28:23 GMT
[...]
KeyAlreadyExistsException - if the index for a value in t, calculated according to this TabularData instance's TabularType definition already maps to an existing value in this instance, or two values in t have the same index.
[...]
What I did is :
[1]
TabulaDataSupport tds = new TabulaDataSupport(tabType);
tds.put(compData);
HashMap map = new HashMap();
map.put("ignored", compData);
tds.putAll(map); ==> I get KeyAlreadyExistsException :-)
[2]
TabulaDataSupport tds = new TabulaDataSupport(tabType);
HashMap map = new HashMap();
map.put("ignored-1", compData);
map.put("ignored-2", compData);
tds.putAll(map); ==> I do not get KeyAlreadyExistsException :-(
###@###.### 2005-2-11 07:28:23 GMT