langtools/test/tools/javadoc/FlagsTooEarly.java
changeset 1475 19c0851667ca
parent 10 06bc494ca11e
child 1652 1324f96f3883
equal deleted inserted replaced
1474:b808d0ebfe20 1475:19c0851667ca
    38                              "FlagsTooEarly.java");
    38                              "FlagsTooEarly.java");
    39 
    39 
    40         if (com.sun.tools.javadoc.Main.execute(
    40         if (com.sun.tools.javadoc.Main.execute(
    41                 "javadoc",
    41                 "javadoc",
    42                 "FlagsTooEarly",
    42                 "FlagsTooEarly",
       
    43                 FlagsTooEarly.class.getClassLoader(),
    43                 new String[] {"-Xwerror", thisFile}) != 0)
    44                 new String[] {"-Xwerror", thisFile}) != 0)
    44             throw new Error("Javadoc encountered warnings or errors.");
    45             throw new Error("Javadoc encountered warnings or errors.");
    45     }
    46     }
    46 
    47 
    47     /*
    48     /*