XStream
  1. XStream
  2. XSTR-423

CGLIBEnhancedConverter "only one CAllback is registered"

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3.1
    • Component/s: Converters
    • Labels:
      None

      Description

      According to the api for CGLIBEnhancedConverter, this converter can only be used if "only one CAllback is registered". The code to check this condition is actually incorrect:

      line 84:
      if (callbacks.length > 1) {

      it should be:

      if (Arrays.asList(callbacks).size() > 1){

      This makes the code break with Hibernate proxies, even though it shouldn't.

      1. 423.patch
        0.8 kB
        Jerry Shea
      2. XSTR-423.patch
        0.9 kB
        Jerry Shea

        Issue Links

          People

          • Assignee:
            Jörg Schaible
            Reporter:
            Michael Leiseca
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: