Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-4021

JavaBinCodec has poor default behavior for unrecognized classes of objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0
    • None
    • clients - java
    • None

    Description

      It seems that JavaBinCodec has inconsistent serialize/deserialize behavior when dealing with objects of classes that it doesn't recognized. In particular, unrecnognized objects seem to be serialized with the full classname prepented to the "toString()" value, and then that resulting concatentated string is left as is during deserialization.

      as a concrete example: serializing & deserializing a BigDecimal value results in a final value like "java.math.BigDecimal:1848.66" even though for most users the simple toString() value would have worked as intended.

      Attachments

        1. SOLR-4021.patch
          3 kB
          Gregg Donovan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hossman Chris M. Hostetter
              Votes:
              6 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated: