There appears to be a problem with code generated by JDK1.1.6.
The currently promoted build of JavaTest, dated Feb 23 located in
/usr/sqe/pkgs/sqe-tools-jt20/promoted was compiled with JDK1.1.6.
This transcript shows 2 runs of JavaTest.
In the first run, we set the JDK version to JDK1.2beta3. We then run
the promoted build with any test. Ignoring the ubiquitous
IllegalArgumentException, an IllegalAccessException with an odd field
name is generated.
In the second run, the JDK version is set to JDK1.1.6I. No
IllegalAccessException, test runs as expected.
SESSION TRANSCRIPT:
(iag@ribbit) ~//t/dbasic/fromJDK $ echo $JAVA_HOME
/usr/local/java/jdk1.2/solaris
(iag@ribbit) ~//t/dbasic/fromJDK $ java -fullversion
java full version "JDK-1.2beta3-I"
(iag@ribbit) ~//t/dbasic/fromJDK $ CLASSPATH=/usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar /usr/sqe/pkgs/sqe-tools-jt20/promoted/solaris/bin/jtreg -gui Skip.java
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: null Color or Paint
at sun.java2d.SunGraphics2D.setPaint(SunGraphics2D.java:882)
at sun.awt.motif.X11Graphics.setPaint(X11Graphics.java:268)
at sun.java2d.SunGraphics2D.setColor(SunGraphics2D.java:1169)
at sun.awt.motif.X11Graphics.setColor(X11Graphics.java:260)
at javasoft.sqe.javatest.gui.ProgressMeter.paint(ProgressMeter.java:107)
at java.awt.Component.dispatchEventImpl(Component.java:1997)
at java.awt.Component.dispatchEvent(Component.java:1951)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:167)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
java.lang.IllegalAccessError: try to access field javasoft/sqe/javatest/finder/TagTestFinder.class$javasoft$sqe$javatest$finder$JavaCommentStream from class javasoft/sqe/javatest/regtest/RegressionTestFinder
at javasoft.sqe.javatest.regtest.RegressionTestFinder.<init>(RegressionTestFinder.java:54)
at java.lang.Class.newInstance(Native Method)
at javasoft.sqe.javatest.Harness.createTestFinder(Harness.java:165)
at javasoft.sqe.javatest.Harness.runTests(Harness.java:452)
at javasoft.sqe.javatest.Harness.access$1(Harness.java:436)
at javasoft.sqe.javatest.Harness$Worker.run(Harness.java:402)
(iag@ribbit) ~//t/dbasic/fromJDK $ jdk116
(iag@ribbit) ~//t/dbasic/fromJDK $ echo $JAVA_HOME
/usr/local/java/jdk1.1.6/solaris
(iag@ribbit) ~//t/dbasic/fromJDK $ java -fullversion
java full version "JDK1.1.6I"
(iag@ribbit) ~//t/dbasic/fromJDK $ CLASSPATH=/usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar /usr/sqe/pkgs/sqe-tools-jt20/promoted/solaris/bin/jtreg -gui Skip.java
[ test runs as expected ]
STEPS TO REPRODUCE:
(see session transcript above)
1. Set JAVA_HOME to latest 1.2 JDK.
2. Set CLASSPATH to /usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar
3. Run JavaTest using jtreg, provide any valid test name, no options
necessary
iris.garcia@eng 1998-02-24
The currently promoted build of JavaTest, dated Feb 23 located in
/usr/sqe/pkgs/sqe-tools-jt20/promoted was compiled with JDK1.1.6.
This transcript shows 2 runs of JavaTest.
In the first run, we set the JDK version to JDK1.2beta3. We then run
the promoted build with any test. Ignoring the ubiquitous
IllegalArgumentException, an IllegalAccessException with an odd field
name is generated.
In the second run, the JDK version is set to JDK1.1.6I. No
IllegalAccessException, test runs as expected.
SESSION TRANSCRIPT:
(iag@ribbit) ~//t/dbasic/fromJDK $ echo $JAVA_HOME
/usr/local/java/jdk1.2/solaris
(iag@ribbit) ~//t/dbasic/fromJDK $ java -fullversion
java full version "JDK-1.2beta3-I"
(iag@ribbit) ~//t/dbasic/fromJDK $ CLASSPATH=/usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar /usr/sqe/pkgs/sqe-tools-jt20/promoted/solaris/bin/jtreg -gui Skip.java
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: null Color or Paint
at sun.java2d.SunGraphics2D.setPaint(SunGraphics2D.java:882)
at sun.awt.motif.X11Graphics.setPaint(X11Graphics.java:268)
at sun.java2d.SunGraphics2D.setColor(SunGraphics2D.java:1169)
at sun.awt.motif.X11Graphics.setColor(X11Graphics.java:260)
at javasoft.sqe.javatest.gui.ProgressMeter.paint(ProgressMeter.java:107)
at java.awt.Component.dispatchEventImpl(Component.java:1997)
at java.awt.Component.dispatchEvent(Component.java:1951)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:167)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:45)
java.lang.IllegalAccessError: try to access field javasoft/sqe/javatest/finder/TagTestFinder.class$javasoft$sqe$javatest$finder$JavaCommentStream from class javasoft/sqe/javatest/regtest/RegressionTestFinder
at javasoft.sqe.javatest.regtest.RegressionTestFinder.<init>(RegressionTestFinder.java:54)
at java.lang.Class.newInstance(Native Method)
at javasoft.sqe.javatest.Harness.createTestFinder(Harness.java:165)
at javasoft.sqe.javatest.Harness.runTests(Harness.java:452)
at javasoft.sqe.javatest.Harness.access$1(Harness.java:436)
at javasoft.sqe.javatest.Harness$Worker.run(Harness.java:402)
(iag@ribbit) ~//t/dbasic/fromJDK $ jdk116
(iag@ribbit) ~//t/dbasic/fromJDK $ echo $JAVA_HOME
/usr/local/java/jdk1.1.6/solaris
(iag@ribbit) ~//t/dbasic/fromJDK $ java -fullversion
java full version "JDK1.1.6I"
(iag@ribbit) ~//t/dbasic/fromJDK $ CLASSPATH=/usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar /usr/sqe/pkgs/sqe-tools-jt20/promoted/solaris/bin/jtreg -gui Skip.java
[ test runs as expected ]
STEPS TO REPRODUCE:
(see session transcript above)
1. Set JAVA_HOME to latest 1.2 JDK.
2. Set CLASSPATH to /usr/sqe/pkgs/sqe-tools-jt20/promoted/javatest.jar
3. Run JavaTest using jtreg, provide any valid test name, no options
necessary
iris.garcia@eng 1998-02-24