Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-2066

[classlib][awt] RenderingHints throws unexpected NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      ========= Spec ============
      Nothing about exceptions

      ============ Test ===========
      import java.awt.RenderingHints;
      import javax.swing.text.DefaultEditorKit;

      public class Test {

      public static void main(String args[])

      { RenderingHints localRenderingHints = new RenderingHints( RenderingHints.KEY_ANTIALIASING, new DefaultEditorKit()); System.out.println("passed"); }


      }

      ========== RI ============
      passed

      ============= Harmony ==========
      Uncaught exception in main:
      java.lang.IllegalArgumentException
      at java.awt.RenderingHints.put(RenderingHints.java:99)
      at java.awt.RenderingHints.<init>(RenderingHints.java:79)
      at Test.main(Test.java:9)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dkishenko Denis Kishenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: