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

[macos] HeadlessJRadioButtonMenuItem.java fails as sun.font.FontManager.findFont2D(String, int, int) returns null

XMLWordPrintable

      HeadlessJRadioButtonMenuItem.java fails on macosx-aarch64 with following exception stack:

      java.lang.NullPointerException: Cannot read field "handle" because the return value of "sun.font.FontManager.findFont2D(String, int, int)" is null
      at java.desktop/java.awt.Font.getFont2D(Font.java:529)
      at java.desktop/java.awt.Font$FontAccessImpl.getFont2D(Font.java:265)
      at java.desktop/sun.font.FontUtilities.getFont2D(FontUtilities.java:151)
      at java.desktop/sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:353)
      at java.desktop/sun.font.FontDesignMetrics.<init>(FontDesignMetrics.java:346)
      at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:298)
      at java.desktop/sun.swing.SwingUtilities2.getFontMetrics(SwingUtilities2.java:1242)

            honkar Harshitha Onkar
            honkar Harshitha Onkar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: