Add a way to create an immutable snapshot of a BitSet

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: None
    • Component/s: core-libs
    • b14

      It is possible to provide an immutable BitSet backed by a `@Stable` array, enabling constant-folding optimizations.

      The following classes in the JDK would potentially benefit from such an addition:

      ShapedTranslucentWindowClick (1)
      PoolReader (6)
      URLEncoder (1)
      JMXServiceURL (5)
      TableView (1)
      HtmlTree (2)

      Parentheses indicate the number of `static final` usages where an immutable BitSet might be used.

            Assignee:
            Per-Ake Minborg
            Reporter:
            Per-Ake Minborg
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: