-
Bug
-
Resolution: Fixed
-
P2
-
None
-
b04
$ cat TestCompact2.java TestXML.java
/*
* @test
* @modules java.compact2
*/
public class TestCompact2 {
public static void main(String[] argv) {}
}
/*
* @test
* @modules java.xml
*/
public class TestXML {
public static void main(String[] argv) {}
}
$ jtreg TestCompact2.java TestXML.java
Passed: TestCompact2.java
Passed: TestXML.java
Test results: passed: 2
$ jtreg -javaoptions:"-limitmods java.xml" TestCompact2.java TestXML.java
Passed: TestXML.java
Test results: passed: 1
$ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java TestXML.java
Passed: TestXML.java
Test results: passed: 1
$ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java
Test results: no tests selected
/*
* @test
* @modules java.compact2
*/
public class TestCompact2 {
public static void main(String[] argv) {}
}
/*
* @test
* @modules java.xml
*/
public class TestXML {
public static void main(String[] argv) {}
}
$ jtreg TestCompact2.java TestXML.java
Passed: TestCompact2.java
Passed: TestXML.java
Test results: passed: 2
$ jtreg -javaoptions:"-limitmods java.xml" TestCompact2.java TestXML.java
Passed: TestXML.java
Test results: passed: 1
$ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java TestXML.java
Passed: TestXML.java
Test results: passed: 1
$ jtreg -javaoptions:"-limitmods java.compact2" TestCompact2.java
Test results: no tests selected
- blocks
-
JDK-8156799 Update jdk/modules/etc/VerifyModuleDelegation.java to work with -limitmods
- Open
- relates to
-
JDK-8145414 Fix more module dependences in jdk tests
- Open