mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44: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,15 +27,16 @@
|
|||
* @summary javah should accept module/class names
|
||||
* @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.JavahTask
|
||||
* @run main ModuleClass
|
||||
*/
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import toolbox.JavahTask;
|
||||
import toolbox.ToolBox;
|
||||
|
||||
public class ModuleClass {
|
||||
static public void main(String[] args) throws Exception {
|
||||
ToolBox tb = new ToolBox();
|
||||
|
@ -44,7 +45,7 @@ public class ModuleClass {
|
|||
}
|
||||
|
||||
static void check(ToolBox tb, String name) throws Exception {
|
||||
tb.new JavahTask()
|
||||
new JavahTask(tb)
|
||||
.classes(name)
|
||||
.run();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue