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

Re-examine Bidi reflective dependency on java.awt.font

XMLWordPrintable

    • b23
    • Verified


      The Bidi dependency on java.awt.font.TextAttribute and java.awt.font.NumericShaper is problematic for our modularization effort.

      At this time (early JDK 9) then the dependency is reflective:

      sun.text.bidi.BidiBase
         ->java.awt.font.TextAttribute

      sun.text.bidi.BidiBase
         ->java.awt.font.NumericShaper

      and this is good enough for Compact Profiles in JDK 8.

      This bug requests that this dependency be re-examined in the context of modules where the access to the java.awt.font fonts types will fail with IllegalAccessException because the base module does not require the desktop module. A possible approach is to replace the current use of reflection with a solution based on sun.misc.SharedSecrets.

            naoto Naoto Sato
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: