castor
  1. castor
  2. CASTOR-1915

Integer as Map key is displayed as String

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major 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 :
      1

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Ma, Xuan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified