mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
8152897: refactor ToolBox to allow reduced documented dependencies
Reviewed-by: vromero
This commit is contained in:
parent
208d93e110
commit
7812306bc0
212 changed files with 3955 additions and 3485 deletions
|
@ -27,13 +27,14 @@
|
|||
* @summary compile of iterator use fails with error "defined in an inaccessible class or interface"
|
||||
* @library /tools/lib
|
||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||
* jdk.compiler/com.sun.tools.javac.file
|
||||
* jdk.compiler/com.sun.tools.javac.main
|
||||
* jdk.jdeps/com.sun.tools.javap
|
||||
* @build ToolBox
|
||||
* @build toolbox.ToolBox toolbox.JavacTask
|
||||
* @run main CompileErrorWithIteratorTest
|
||||
*/
|
||||
|
||||
import toolbox.JavacTask;
|
||||
import toolbox.ToolBox;
|
||||
|
||||
public class CompileErrorWithIteratorTest {
|
||||
|
||||
private static final String TestCollectionSrc =
|
||||
|
@ -80,7 +81,7 @@ public class CompileErrorWithIteratorTest {
|
|||
}
|
||||
|
||||
void compile() throws Exception {
|
||||
tb.new JavacTask()
|
||||
new JavacTask(tb)
|
||||
.sources(TestCollectionSrc, TestSrc)
|
||||
.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue