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

java.awt.Font.createFont0() swallows exception

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      other

      Description

      FULL PRODUCT VERSION :
      1.8.0_121-b13, Oracle Corporation, Java HotSpot(TM) Client VM

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 64-Bit

      A DESCRIPTION OF THE PROBLEM :
      This is an upstream bugreport for
      https://josm.openstreetmap.de/ticket/14411

      One of our users faced the following exception:

      java.io.IOException: Problem reading font data.
      at java.awt.Font.createFont0(Unknown Source)
      at java.awt.Font.createFont(Unknown Source)

      We can see in Font source code that the root cause is swallowed, giving us no hint about what's wrong:

              try {
                  ...
              } catch (Throwable t) {
                  ...
                  throw new IOException("Problem reading font data.");
              }

      The code should be updated to:

         throw new IOException("Problem reading font data.", t);

      As per Quality Outreach, can you please add label josm-found to this bug report?


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      java.io.IOException: Problem reading font data.
      at java.awt.Font.createFont0(Unknown Source)
      at java.awt.Font.createFont(Unknown Source)

      REPRODUCIBILITY :
      This bug can be reproduced rarely.

      CUSTOMER SUBMITTED WORKAROUND :
      Patching Font

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              prr Philip Race
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: