Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1583

Define a stable way to serialize types

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 11.1
    • Fix Version/s: 11.2-rc-1
    • Component/s: Component
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Current implementation of DefaultParameterizedType#toString produces output such as:

      java.util.List< java.lang.String >
      

      those spaces are unnecessary and not present in the implementation of ParameterizedTypeImpl of Java: https://github.com/frohoff/jdk8u-jdk/blob/master/src/share/classes/sun/reflect/generics/reflectiveObjects/ParameterizedTypeImpl.java#L229

      We should provide a standard way to serialize all types to avoid this kind of inconsistencies.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                surli Simon Urli
                Reporter:
                surli Simon Urli
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: