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

Define a stable way to serialize types

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Trivial
    • 11.2-rc-1
    • 11.1
    • Component
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: