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

Nimbus L&F could not be instantiated on Solaris-sparc

XMLWordPrintable

    • 2d
    • sparc
    • solaris

      The following JCK tests fail due to this issue:

      api/javax_swing/plaf/nimbus/NimbusLookAndFeel/Colors/index.html#Primary
      api/javax_swing/plaf/nimbus/NimbusLookAndFeel/index.html#General
      api/javax_swing/plaf/nimbus/NimbusLookAndFeel/index.html#GetDerivedColor
      api/javax_swing/plaf/nimbus/NimbusLookAndFeel/index.html#Register
      api/javax_swing/plaf/nimbus/NimbusStyle/index.html#General
      On a Solaris Sparc machine Nimbus Look And Feel is completely unusable.
      It just could not be instantiated.
      The following:

      import javax.swing.plaf.nimbus.NimbusLookAndFeel;
      public class Test {
          public static void main(String[] args) {
              new NimbusLookAndFeel();
          }
      }

      will cause NPE:

      java.lang.NullPointerException
      at sun.font.FontManager.getFontConfigFont(FontManager.java:3475)
      at sun.font.FontManager.getFontConfigFUIR(FontManager.java:3595)
      at javax.swing.plaf.nimbus.NimbusDefaults.<init>(NimbusDefaults.java:141)
      at javax.swing.plaf.nimbus.NimbusLookAndFeel.<init>(NimbusLookAndFeel.java:95)
      this problem is reported for JDK 7 b71
      not reproducible with JDK7 b74

            prr Philip Race
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: