jtreg JDK7 support
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Mar 14 20:32:52 UTC 2018
The intent is that the OpenJDK tests for OpenJDK 6 and 7 should be
runnable with jtreg using JDK 7.
Since IIRC there are no OpenJDK tests using asmtools and TestNG in
OpenJDK 6 and 7, the issue of asmtools and TestNG using a newer
classfile version has not arisen before.
If you want to run some new/additional TestNG tests on JDK 7, you'll
have to build jtreg with an older, compatible version of TestNG. If you
want to run some new/additional tests using asmtools files, you'll have
to work with the AsmTools folk (asmtools-dev at openjdk.java.net) to ensure
the code is compatible with JDK 7.
-- Jon
On 2/26/18 8:38 AM, Zdeněk Žamberský wrote:
> Hi,
>
> I have noticed that latest build of jtreg (tip) on adoptopenjdk is not
> compatible with jdk7.
> Jtreg.jar itself has class versions compatible with JDK 7, but some
> dependencies
> require JDK >=8 (namely testng.jar and asmtools.jar).
>
>
> this caused some tests fail (on JDK 7) with e.g.
>
> Failed. Execution failed: `main' threw exception:
> java.lang.UnsupportedClassVersionError: org/testng/IReporter :
> Unsupported major.minor version 52.0
>
>
> I tried to build jtreg myself using make/build-all.sh with JDK 7, but
> script complained
> it requires jdk8. I tried to remove this check :) , but it failed when
> building
> asmtools-7.0-b02. However page about building jtreg still mentions
> both JDK 7 or JDK 8 [1].
>
> Could you please clarify what is the current status of jtreg, when it
> comes to JDK 7 support ?
>
>
> [1] http://openjdk.java.net/jtreg/build.html
>
>
> thank you
>
> best regards,
>
More information about the jtreg-dev
mailing list