- Fork openjdk/jdk
- Clone my/jdk into
jdk/ - Check that
jdk/test/jdk/TEST.ROOTexists
- Either compile sources from
openjdk/jtregor grab packagejtreg-7.4+1.zipfrom https://builds.shipilev.net/jtreg/ - Unzip it into
jtreg/ - Check that
jtreg/lib/jtreg.jarexists
Use adopted and absolute paths below.
-jar
/path/to/jtreg/lib/jtreg.jar
-agentvm
-w:tmp/work
-r:tmp/results
java @test jdk/test/jdk/tools/launcher/modules/patch/basic/PatchTest.java- From https://repo1.maven.org/maven2/com/google/errorprone/error_prone_core/2.27.1/
- To
lib/error_prone_core-2.27.1-with-dependencies.jar
- From https://github.com/PicnicSupermarket/error-prone-support/tree/gdejong/testng-migrator/testng-junit-migrator
- To
lib/testng-junit-migrator...jar
Use adopted and absolute paths below.
-XDaccessInternalAPI
-XDcompilePolicy=simple
-processorpath /path/to/lib/error_prone_core-2.27.1-with-dependencies.jar:/path/to/lib/testng-junit-migrator...jar
'-Xplugin:ErrorProne -XepPatchChecks:TestNGJUnitMigration -XepPatchLocation:IN_PLACE'
Use adopted and absolute paths below.
-javacoption:@/path/to/javac.args
java @test @migrate jdk/test/jdk/tools/launcher/modules/patch/basic/PatchTest.javaFinish and cleanup migration in PatchTest.java until test is happy again:
java @test jdk/test/jdk/tools/launcher/modules/patch/basic/PatchTest.java