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

Create a regression test for JDK-4330998

    XMLWordPrintable

Details

    • b15
    • generic
    • generic

    Backports

      Description

        Create a regression test for JDK-4330998

        Issue tested:
        When calling JEditorPane.setText(null), the following exception is thrown:

        java.lang.NullPointerException:
                at java.io.StringReader.<init>(StringReader.java:38)

        Testing:
        Java 1.4.0 -> Test Failed.
        $ ./j2sdk1.4.0/bin/java bug4330998Win
        java.lang.RuntimeException: Test failed, caught Exception java.lang.NullPointerException when calling text.setText(null)
                at bug4330998Win.runTest(bug4330998Win.java:45)
                at bug4330998Win.main(bug4330998Win.java:51)
        Exception in thread "main"

        Java 1.4.1 -> Test Passed.
        $ ./j2sdk1.4.1/bin/java bug4330998Win
        Test passed

        Attachments

          Issue Links

            Activity

              People

                mvs Manukumar V S
                mvs Manukumar V S
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: