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

PIT: Regression test FontAttributeTest.java fails on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.0, 6
    • client-libs
    • 2d
    • b51
    • other, sparc
    • solaris_7, solaris_10
    • Verified

      Regression test FontAttributeTest.java fails on Solaris with PIT build 2005-04-13.mustang.pit.

      - The Regression test FontAttributeTest.java is a new test provided for verification of bug fixes 4339577 and 4296952.
      - Unable to run the testcase with prior promoted build as the regression test makes use of new API (included with the PIT build).
      - The regression test runs on WinXP and RHAS30
      - The regression test will generate a NPE if run on Solaris9 or Solaris10. Machines tested were Sunblade 2000 and Sunblade 2500.

      Steps to reproduce
      ==================
      1) Set JAVA_HOME environment variable to latest 2D PIT build
      2) Compile and run the regression test FontAttributeTest.java
      3) The following NPE will be seen

      % java FontAttributeTest
      Exception in thread "main" java.lang.NullPointerException
      at java.util.Hashtable.put(Hashtable.java:396)
      at java.util.Hashtable.putAll(Hashtable.java:470)
      at
      java.awt.font.StyledParagraph.addInputMethodAttrs(StyledParagraph.java:430)
      at java.awt.font.StyledParagraph.<init>(StyledParagraph.java:83)
      at java.awt.font.TextLine.standardCreateTextLine(TextLine.java:931)
      at java.awt.font.TextLayout.standardInit(TextLayout.java:742)
      at java.awt.font.TextLayout.<init>(TextLayout.java:534)
      at FontAttributeTest$DisplayRecord.<init>(FontAttributeTest.java:79)
      at
      FontAttributeTest$Tests$TestIterator.next(FontAttributeTest.java:241)
      at
      FontAttributeTest$Tests$TestIterator.next(FontAttributeTest.java:228) at
      FontAttributeTest$Tests.<init>(FontAttributeTest.java:190)
      at FontAttributeTest.<init>(FontAttributeTest.java:30)
      at FontAttributeTest.main(FontAttributeTest.java:22)

      ###@###.### 2005-04-18 00:28:04 GMT

            prr Philip Race
            rreynagasunw Rick Reynaga (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: