langtools/test/tools/javadoc/XWerror.java
changeset 1475 19c0851667ca
parent 10 06bc494ca11e
child 1652 1324f96f3883
equal deleted inserted replaced
1474:b808d0ebfe20 1475:19c0851667ca
    34 
    34 
    35 public class XWerror extends Doclet
    35 public class XWerror extends Doclet
    36 {
    36 {
    37     public static void main(String[] args) {
    37     public static void main(String[] args) {
    38         if (com.sun.tools.javadoc.Main.
    38         if (com.sun.tools.javadoc.Main.
    39             execute("javadoc", "XWerror",
    39             execute("javadoc", "XWerror", XWerror.class.getClassLoader(),
    40                     new String[] {"-Xwerror",
    40                     new String[] {"-Xwerror",
    41                                   System.getProperty("test.src", ".") +
    41                                   System.getProperty("test.src", ".") +
    42                                   java.io.File.separatorChar +
    42                                   java.io.File.separatorChar +
    43                                   "XWerror.java"}) == 0)
    43                                   "XWerror.java"}) == 0)
    44             throw new Error();
    44             throw new Error();