Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8342471

New marker interface to define collections supporting null values

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      ImmutableCollections List.of(..), Set.of(..), Map.of(..), and other collections not supporting null may lead to issues such as: https://bugs.openjdk.org/browse/JDK-8265905

      New marker interfaces, similar to RandomAccess, may prevent such issues when not knowing the concrete implementation.

      Proposal: NullableValues for collections and NullableKeys + NullableValues for maps.


            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: