Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16153

Unmodifiable JDK9 collections not marshallable with ProtoStream

    XMLWordPrintable

Details

    Description

      JDK9 introduced a number of new unmodifable collection classes:

      • Empty implementations of java.util.Map, java.util.List, and java.util.Set.
        • As returned via List.of(), Set.of(), Map.of(), or Map.ofEntries()
        • N.B. These are different than the impls returned by Collections.emptyMap()/emptyList()/emptySet().
      • Tiny implementations of java.util.Map, java.util.List, and java.util.Set.
        • As returned via List.of(...), Set.of(...), Map.of(...), or Map.ofEntries(...)
        • N.B. These are different that the impls returned by Collections.singletonMap(...)/singletonList(...)/singleton(...)
      • Arbitrary-size implementations of java.util.Map, java.util.List, and java.util.Set.
        • As returned via Map.of(...), List.of(...), Set.of(...) with more than 2 parameters, or Map.ofEntries(...) with more than 1 parameter

      These implementations are not currently marshallable with ProtoStream.

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: