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

JEditorPane.createEditorKitForContentType throws NPE after 6882559

    Details

      Backports

        Description

        Test api/javax_swing/JEditorPane/index.html\#equiv is failed due to NPE
        1. index_equiv.jtr.txt
          4 kB
          Shilpi Rastogi
        2. index_equiv.jtr.txt
          7 kB
          Shilpi Rastogi

          Issue Links

            Activity

            Hide
            srastogi Shilpi Rastogi added a comment - - edited
            RULE "api/javax_swing/JEditorPane/index_equiv" Exception java.lang.NullPointerException
            RULE "api/javax_swing/JEditorPane/index_equiv" TestCase [JEditorPane0003] Test case throws exception: java.lang.NullPointerException
            Show
            srastogi Shilpi Rastogi added a comment - - edited RULE "api/javax_swing/JEditorPane/index_equiv" Exception java.lang.NullPointerException RULE "api/javax_swing/JEditorPane/index_equiv" TestCase [JEditorPane0003] Test case throws exception: java.lang.NullPointerException
            Hide
            srastogi Shilpi Rastogi added a comment -
            Please see attachment for more detail.
            Show
            srastogi Shilpi Rastogi added a comment - Please see attachment for more detail.
            Hide
            srastogi Shilpi Rastogi added a comment -
            Test code:

             public Status JEditorPane0003() {
                    String testCaseID = "JEditorPane0003";
                    ref.println("====== " + testCaseID + " ======" + " public final void setContentType(String type)");

                    JEditorPane c = new JEditorPane();

                    c.setContentType("test/test");

                    String getValue = c.getContentType();

                    if (!(getValue == "text/plain")) {
                        return Status.failed("Failed to get the value.");
                    }

                    return Status.passed("OKAY");
                }

            Show
            srastogi Shilpi Rastogi added a comment - Test code:  public Status JEditorPane0003() {         String testCaseID = "JEditorPane0003";         ref.println("====== " + testCaseID + " ======" + " public final void setContentType(String type)");         JEditorPane c = new JEditorPane();         c.setContentType("test/test");         String getValue = c.getContentType();         if (!(getValue == "text/plain")) {             return Status.failed("Failed to get the value.");         }         return Status.passed("OKAY");     }
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f8acbd06989a
            User: mcherkas
            Date: 2016-06-09 10:55:19 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/client/jdk/rev/f8acbd06989a User: mcherkas Date: 2016-06-09 10:55:19 +0000
            Hide
            scfitch Stephen Fitch added a comment -
            Removed critical watch - as only needed for 7u121, and not for 7u111.
            Show
            scfitch Stephen Fitch added a comment - Removed critical watch - as only needed for 7u121, and not for 7u111.
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f8acbd06989a
            User: amurillo
            Date: 2016-07-13 03:50:56 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/f8acbd06989a User: amurillo Date: 2016-07-13 03:50:56 +0000

              People

              • Assignee:
                mcherkas Mikhail Cherkasov (Inactive)
                Reporter:
                srastogi Shilpi Rastogi
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: