1 /* |
1 /* |
2 * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* @test |
24 /* @test |
25 * @bug 8004832 |
25 * @bug 8004832 8000103 |
26 * @summary Add new doclint package |
26 * @summary Add new doclint package |
27 * @bug 8000103 |
|
28 * @summary Create doclint utility |
27 * @summary Create doclint utility |
29 */ |
28 */ |
30 |
29 |
31 import com.sun.tools.doclint.DocLint; |
|
32 import com.sun.tools.doclint.DocLint.BadArgs; |
|
33 import java.io.ByteArrayOutputStream; |
|
34 import java.io.File; |
30 import java.io.File; |
35 import java.io.FilterOutputStream; |
|
36 import java.io.IOException; |
31 import java.io.IOException; |
37 import java.io.OutputStream; |
|
38 import java.io.PrintStream; |
|
39 import java.io.PrintWriter; |
32 import java.io.PrintWriter; |
40 import java.io.StringWriter; |
33 import java.io.StringWriter; |
41 import java.lang.annotation.Annotation; |
34 import java.lang.annotation.Annotation; |
42 import java.lang.annotation.Retention; |
35 import java.lang.annotation.Retention; |
43 import java.lang.annotation.RetentionPolicy; |
36 import java.lang.annotation.RetentionPolicy; |
44 import java.lang.reflect.InvocationTargetException; |
37 import java.lang.reflect.InvocationTargetException; |
45 import java.lang.reflect.Method; |
38 import java.lang.reflect.Method; |
|
39 |
|
40 import com.sun.tools.doclint.DocLint; |
|
41 import com.sun.tools.doclint.DocLint.BadArgs; |
46 |
42 |
47 /** javadoc error on toplevel: a & b. */ |
43 /** javadoc error on toplevel: a & b. */ |
48 public class RunTest { |
44 public class RunTest { |
49 /** javadoc error on member: a < b */ |
45 /** javadoc error on member: a < b */ |
50 public static void main(String... args) throws Exception { |
46 public static void main(String... args) throws Exception { |