jtreg issue
David Holmes
david.holmes at oracle.com
Wed Mar 11 23:36:47 UTC 2020
Hi Prasanta,
On 11/03/2020 6:22 pm, Prasanta Sadhukhan wrote:
> Hi,
>
> I intend to test a jtreg test with jdk10 and below with jtreg5.0. This
> are the steps I did
>
> ./bin/jtreg -version
> jtreg, version 5.0 dev 762
>
>
> export JT_JAVA=/Users/PRSADHUK/Downloads/jdk-15.jdk/Contents/Home/
>
> PRSADHUK-Mac:jtreg PRSADHUK$ ./bin/jtreg
> -jdk:/Users/PRSADHUK/Downloads/jdk-10.jdk/Contents/Home/
> /export/jdk/client/closed/test/jdk/javax/swing/JEditorPane/5062649/bug5062649.java
> Exception while calling user-specified class: requires.VMProps
> java.lang.UnsupportedClassVersionError: requires/VMProps has been
> compiled by a more recent version of the Java Runtime (class file
> version 59.0), this version of the Java Runtime only recognizes class
> file versions up to 54.0
> at java.base/java.lang.ClassLoader.defineClass1(Native Method)
>
> I am sure this is very known issue. Can someone guide me as to what
> needs to be done to test with older jdk?
> BTW, the repo is latest hg.openjdk.java.net/jdk/client
> <http://hg.openjdk.java.net/jdk/client>
It looks like your JDK 10 run is finding a pre-existing:
./JTwork/extraPropDefns/classes/requires/VMProps.class
which was compiled by a later JDK. Try deleting that class file. Or
better still use a different JTwork directory.
David
> Regards
> Prasanta
More information about the jtreg-use
mailing list