XStream
  1. XStream
  2. XSTR-259

deserializing problem with class implementing hashCode

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • JDK version and platform:
      Sun-1.5.0_05 for linux

      Description

      The order of field declaration has an effect on deserializing objects that implement hashCode. In the attached TestCase the NullPointerException does not occur if the name field of ItemCategory is declared before the category.

      1. HashCodeTest.java
        4 kB
        Jörg Schaible
      2. XStreamTest.java
        3 kB
        Dirk Habighorst

        Issue Links

          People

          • Assignee:
            Unassigned
            Reporter:
            Dirk Habighorst
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: