Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8048330 JEP 269: Convenience Factory Methods for Collections
  3. JDK-8133980

reuse emptySet, singletonSet, etc. for various views such as entrySet() on one-element Map

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None

      Description

      This might save a bit of work, but it might also create new issues. The various built-in special collections such as emptySet() etc. mentioned are serializable. It's not clear we want this. In fact we might want all collections views NOT to be serializable.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                smarks Stuart Marks
                Reporter:
                smarks Stuart Marks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: