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

JCK test api.javax.swing.text.DefaultCaret.setgetTests fails intermittenly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: client-libs

      Description

      jtg-s114% uname -a
      SunOS jtg-s114 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-2
      jtg-s114% /usr/sbin/psrinfo
      0 on-line since 01/13/99 16:21:26
      1 on-line since 01/13/99 16:21:29
      jtg-s114% showrev -p
      Patch: 105490-04 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWarc, SUNWbtool, SUNWhea, SUNWtoo, SUNWosdem, SUNWxcu4
      Patch: 105181-11 Obsoletes: 105214-01, 105636-01, 105776-01, 106031-02, 106308-01 Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWcar, SUNWhea
      Patch: 105210-17 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu, SUNWarc
      Patch: 105490-05 Obsoletes: Requires: Incompatibles: Packages: SUNWcsu, SUNWcsr, SUNWarc, SUNWbtool, SUNWhea, SUNWtoo, SUNWosdem, SUNWxcu4
      Patch: 105181-07 Obsoletes: 105636-01, 105776-01 Requires: Incompatibles: Packages: SUNWcsr, SUNWcar, SUNWhea
      Patch: 105633-12 Obsoletes: Requires: Incompatibles: Packages: SUNWxwfnt, SUNWxwplt, SUNWxwcft, SUNWxwslb
      Patch: 105669-04 Obsoletes: Requires: Incompatibles: Packages: SUNWdtbas

      #!/bin/csh

      setenv LD_LIBRARY_PATH /usr/dt/lib:/usr/openwin/lib:/net/mulder.eng/export/mulde
      r3/javatb/testbase/src/JCK-runtime-api-12a/lib/sparc
      setenv PATH /usr/java/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
      setenv DISPLAY jtg-s114:0.0
      setenv THREADS_FLAG native
      setenv CLASSPATH .:/net/mulder.eng/export/mulder3/javatb/testbase/src/JCK-runtim
      e-api-12a/classes:/net/mulder.eng/export/mulder3/javatb/testbase/src/JCK-runtime
      -api-12a/javatest.jar
      @ number=0
      while ( $number <= 1000 )
      echo $number
      /net/mulder/export/mulder3/jdk12x/`uname -p`/jdk1.2FCS/bin/java -Xfuture javasof
      t.sqe.tests.api.javax.swing.text.DefaultCaret.setgetTests
      if ( $status != 95 ) then
      exit
      endif
      @ number++
      end

      java full version "JDK-1.2-V"

      The test failed intermittenly ( 1/73)
      java.lang.NullPointerException
              at javax.swing.text.PlainView.modelToView(PlainView.java:324)
              at javax.swing.text.View.modelToView(View.java:301)
              at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.jav
      a:1085)
              at javax.swing.plaf.basic.BasicTextUI.damageRange(Compiled Code)
              at javax.swing.plaf.basic.BasicTextUI.damageRange(Compiled Code)
              at javax.swing.text.DefaultHighlighter.addHighlight(Compiled Code)
              at javax.swing.text.DefaultCaret.moveDot(Compiled Code)
              at javax.swing.text.DefaultCaret.moveDot(Compiled Code)
              at javax.swing.text.JTextComponent.moveCaretPosition(Compiled Code)
              at javax.swing.text.JTextComponent.select(Compiled Code)
              at javax.swing.text.JTextComponent.setSelectionEnd(Compiled Code)
              at javasoft.sqe.tests.api.javax.swing.text.DefaultCaret.setgetTests.Defaul
      tCaret2012(setgetTests.java:469)
              at java.lang.reflect.Method.invoke(Native Method)
              at java.lang.reflect.Method.invoke(Compiled Code)
              at javasoft.sqe.jck.lib.MultiTest.run(Compiled Code)
              at javasoft.sqe.tests.api.javax.swing.text.DefaultCaret.setgetTests.main(s
      etgetTests.java:38)
      DefaultCaret2012: Failed. Test case throws exception: java.lang.NullPointerExcepti
      on
      ====== DefaultCaret2013 ====== public void focusLost(FocusEvent event)
      DefaultCaret2013: Passed. OKAY
      STATUS:Failed. tests: 12; passed: 11; failed: 1; first test case failure: DefaultCaret2012


      june.zhong@eng 1999-01-26

      I got this test to fail with the JIT off:
      ====== DefaultCaret2012 ====== public void focusGained(FocusEvent event)
      java.lang.NullPointerException
              at javax.swing.text.PlainView.modelToView(PlainView.java:324)
              at javax.swing.text.View.modelToView(View.java:301)
              at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1085)
              at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:791)
              at javax.swing.plaf.basic.BasicTextUI.damageRange(BasicTextUI.java:772)
              at javax.swing.text.DefaultHighlighter.addHighlight(DefaultHighlighter.java:108)
              at javax.swing.text.DefaultCaret.moveDot(DefaultCaret.java:698)
              at javax.swing.text.DefaultCaret.moveDot(DefaultCaret.java:679)
              at javax.swing.text.JTextComponent.moveCaretPosition(JTextComponent.java:913)
              at javax.swing.text.JTextComponent.select(JTextComponent.java:1364)
              at javax.swing.text.JTextComponent.setSelectionEnd(JTextComponent.java:1299)
              at javasoft.sqe.tests.api.javax.swing.text.DefaultCaret.setgetTests.DefaultCaret2012(setgetTests.java:469)
              at java.lang.reflect.Method.invoke(Native Method)
              at javasoft.sqe.jck.lib.MultiTest.run(MultiTest.java:137)
              at javasoft.sqe.tests.api.javax.swing.text.DefaultCaret.setgetTests.main(setgetTests.java:38)
      DefaultCaret2012: Failed. Test case throws exception: java.lang.NullPointerException
      ====== DefaultCaret2013 ====== public void focusLost(FocusEvent event)
      DefaultCaret2013: Passed. OKAY
      STATUS:Failed. tests: 12; passed: 11; failed: 1; first test case failure: DefaultCaret2012

      The failure is easily reproducible on multiprocessors and has not been
      seen on uniprocessors.

      allan.jacobs@Eng 1999-01-27

        Attachments

          Activity

            People

            Assignee:
            svioletsunw Scott Violet (Inactive)
            Reporter:
            jzhongsunw June Zhong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: