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

Cleanup of sun.java2d.pipe.Region

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • Resolved In Build:
      b124
    • CPU:
      generic
    • OS:
      generic

      Description

      When I worked on some bugs I got a situation
      when I tried to change the Region object via a different set methods.
      But these changes are ignored because the reference was to
      ImmutableRegion which replaces all setter to no-op methods.

      In the fix I propose to remove specific ImmutableRegion class, and make
      the whole Region class immutable:
        - setXX methods are removed, since most of them are unused.
        - the new getInstance(int box[], SpanIterator) was added, so the
      appendSpans() can be changed to the private.
        - small cleanup in equals, toString.

      http://mail.openjdk.java.net/pipermail/2d-dev/2016-May/006838.html

        Attachments

          Activity

            People

            Assignee:
            serb Sergey Bylokhov
            Reporter:
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: