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

[macOS] Remove finalize method in CGraphicsEnvironment.java

XMLWordPrintable

    • 2d

      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.

            prr Philip Race
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: