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

JCK: api/java_awt/EventQueue tests: Runtime Exception kills EventDispatchThread

XMLWordPrintable

    • beta
    • generic, x86, sparc
    • generic, linux, solaris_2.6
    • Verified

      The following JCK1.3 tests fail on Linux RedHat 6.2 and Windows:
      api/java_awt/EventQueue/index.html#Invoke
      api/java_awt/EventQueue/index.html#PushPop

      To reproduce the bug, run script below
      You may need to set JCK and JAVA_HOME.

      -------------------------------------------------------------------------------------
      #!/bin/sh
      SWITCH="$@"
      JAVA_HOME=/usr/local/java/jdk1.4/linux-i386
      JCK=/net/orthello/home2/JCK-13
      CLASSPATH=$JCK/classes:$JCK/javatest.jar
      export CLASSPATH
      executeClass=javasoft.sqe.tests.api.java.awt.EventQueue.InvokeTests

      $JAVA_HOME/bin/java ${SWITCH} -version
      $JAVA_HOME/bin/java ${SWITCH} -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy ${executeClass}
      RESULT="$?"
      if [ $RESULT = 95 ]; then
       echo Test passed
      elif [ $RESULT = 97 ]; then
       echo Test failed
      else
       echo Result is $RESULT
      fi

      ------------------------------------ Linux output ------------------------------------

      java version "1.4.0beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b40)
      Java HotSpot(TM) Client VM (build 1.4beta-B40, mixed mode)
      EventQueue2005: Passed. OKAY
      EventQueue0017: Passed. OKAY
      java.lang.NullPointerException
              at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
              at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      ^C

      ======================================================================

            ssisunw Ssi Ssi (Inactive)
            irasunw Ira Ira (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: