Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1.2
-
Component/s: XML
-
Labels:None
-
Environment:Linux 2.6.9-22.0.2.ELsmp,
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)
-
Testcase included:yes
-
Number of attachments :
Description
A field with type int or Integer is assigned as the key for Map in mapping, but when retrieving the value using int as the key from this map, the returned value is null. After interating through the entry set of the map, the class of the key is displayed as java.lang.String, which is supposed to be java.lang.Integer.
You have had a look at http://castor.org/how-to-map-a-hashtable.html to get an idea how to provide a mapping for collection type(s) 'map' or hashtable, right ?