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

JCK test for javax.swing.text.DefaultStyleDocument.styleChanged(Style) failed

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6


      The JCK1.3 tests
      api/javax_swing/text/DefaultStyledDocument/index.html#protected
      for javax.swing.text.DefaultStyleDocument.styleChanged(Style)
      failed under JDK1.3.0K. See JTR file and suggestion below.
      -----------
      #Test Results (version 2)
      #Mon Oct 25 15:11:16 PDT 1999
      #checksum:3551d37e8da9243e
      #-----testdescription-----
      $file=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests/api/javax_swing/text/DefaultStyledDocument/index.html
      $root=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests
      executeClass=javasoft.sqe.tests.api.javax.swing.text.DefaultStyledDocument.protectedTests
      id=protected
      keywords=javax positive runtime swing text
      source=protectedTests.java
      title=DefaultStyledDocument protected methods

      #-----environment-----
      DISPLAY=mizu:0.0
      ExecJCKTestOtherJVMCmd=javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd
      command.testExecute=$ExecJCKTestOtherJVMCmd CLASSPATH=$testSuiteRootDir/../classes$:$javatestClassDir DISPLAY=$DISPLAY HOME=${user.home} LD_LIBRARY_PATH=$testSuiteRootDir/../lib /re/promoted/jdk/1.3/FCS/K/binary/solaris/bin/java -Xfuture -Djava.security.policy=$testSuiteRootDir/../lib/jck.policy -Djava.rmi.activation.port=${java.rmi.activation.port} $testExecuteClass $testExecuteArgs
      java.rmi.activation.port=52525
      user.home=/usr/re/home/java_re

      #-----testresult-----
      description=file:/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests/api/javax_swing/text/DefaultStyledDocument/index.html#protected
      end=Mon Oct 25 15:11:16 PDT 1999
      environment=jck-runtime-solaris
      exclude=DefaultStyledDocument2023
      excludedTestCases=DefaultStyledDocument2023
      execStatus=Failed. tests: 5; passed: 4; failed: 1; first test case failure: DefaultStyledDocument2026
      javatestOS=Solaris 2.x (sparc)
      javatestVersion=JT_2.1.1j
      script=javasoft.sqe.javatest.lib.JCKScript -runtime
      sections=script_messages testExecute
      start=Mon Oct 25 15:11:09 PDT 1999
      status=Failed. tests: 5; passed: 4; failed: 1; first test case failure: DefaultStyledDocument2026
      test=api/javax_swing/text/DefaultStyledDocument/index.html#protected
      timeoutSeconds=600
      work=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/test/JCK-runtime-13rc1/runtime-batch-multiJVM-jit-native/work/api/javax_swing/text/DefaultStyledDocument

      #section:script_messages
      ----------messages:(1/24)----------
      Executing test class...

      #section:testExecute
      ----------messages:(1/722)----------
      command: javasoft.sqe.javatest.lib.ExecJCKTestOtherJVMCmd CLASSPATH=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests/../classes:/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/javatest.jar DISPLAY=mizu:0.0 HOME=/usr/re/home/java_re LD_LIBRARY_PATH=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests/../lib /re/promoted/jdk/1.3/FCS/K/binary/solaris/bin/java -Xfuture -Djava.security.policy=/usr/re/jck1.3/src/solaris/JCK-13k/jck-tests-build/unzip/JCK-runtime-13rc1/tests/../lib/jck.policy -Djava.rmi.activation.port=52525 javasoft.sqe.tests.api.javax.swing.text.DefaultStyledDocument.protectedTests -exclude DefaultStyledDocument2023
      ----------ref:(6/480)----------
      ====== DefaultStyledDocument2022 ====== protected void create(ElementSpec[] data)
      ====== DefaultStyledDocument2024 ====== protected AbstractElement createDefaultRoot()
      ====== DefaultStyledDocument2025 ====== protected void insertUpdate(DefaultDocumentEvent chng, AttributeSet attr)
      ====== DefaultStyledDocument2026 ====== protected void styleChanged(Style style)
      The event has sent..
      ====== DefaultStyledDocument2027 ====== protected void removeUpdate(DefaultDocumentEvent event)
      ----------log:(6/311)----------
      DefaultStyledDocument2022: Passed. OKAY
      DefaultStyledDocument2024: Passed. OKAY
      DefaultStyledDocument2025: Passed. OKAY
      DefaultStyledDocument2026: Failed. The event is lost
      DefaultStyledDocument2027: Passed. OKAY
      STATUS:Failed. tests: 5; passed: 4; failed: 1; first test case failure: DefaultStyledDocument2026
      result: Failed. tests: 5; passed: 4; failed: 1; first test case failure: DefaultStyledDocument2026


      test result: Failed. tests: 5; passed: 4; failed: 1; first test case failure: DefaultStyledDocument2026

      -----------

      It was found during inverstigation that implementation
      of the method was completely changed to work with events via
      SwingUtilities.invokeLater(). The documentation for this methods says:

      public static void invokeLater(Runnable doRun)
            Causes doRun.run() to be executed asynchronously on the AWT event dispatching thread. This will happen after all pending AWT events have been
            processed. This method should be used when an application thread needs to update the GUI. .....

      At least the documentation for javax.swing.text.DefaultStyleDocument.styleChanged(Style) should
      reflect this asynchronous behavior.


            shickeysunw Shannon Hickey (Inactive)
            akuzminorcl Alexander Kuzmin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: