[macOS] Remove finalize method in CGraphicsEnvironment.java

XMLWordPrintable

    • 2d
    • b08

      src/java.desktop/macosx/classes/sun/awt/CGraphicsEnvironment.java has a finalize method to free a native display config handler.
      This can be converted to use 2D disposer.

      However since CGraphicsEnvironment.java is a singleton and it lives as long as the application lives, in practice, it will never be called.
      System.exit(0) will happen before it ever does.

      But it should be kept for completeness.

            Assignee:
            Philip Race
            Reporter:
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: