test/tools/doclint/packageTests/good/Test.java

Tue, 23 Jul 2013 16:06:11 -0700

author
jjg
date
Tue, 23 Jul 2013 16:06:11 -0700
changeset 1915
129751018061
parent 1913
1476d54fdc61
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8021215: javac gives incorrect doclint warnings on normal package statements
Reviewed-by: darcy

jjg@1913 1 /*
jjg@1913 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
jjg@1913 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@1913 4 *
jjg@1913 5 * This code is free software; you can redistribute it and/or modify it
jjg@1913 6 * under the terms of the GNU General Public License version 2 only, as
jjg@1913 7 * published by the Free Software Foundation.
jjg@1913 8 *
jjg@1913 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@1913 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@1913 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@1913 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@1913 13 * accompanied this code).
jjg@1913 14 *
jjg@1913 15 * You should have received a copy of the GNU General Public License version
jjg@1913 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@1913 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@1913 18 *
jjg@1913 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jjg@1913 20 * or visit www.oracle.com if you need additional information or have any
jjg@1913 21 * questions.
jjg@1913 22 */
jjg@1913 23
jjg@1913 24 /*
jjg@1913 25 * @test /nodynamiccopyright/
jjg@1915 26 * @bug 8020664 8021215
jjg@1913 27 * @summary doclint gives incorrect warnings on normal package statements
jjg@1913 28 * @library ../..
jjg@1913 29 * @build DocLintTester
jjg@1913 30 * @run main DocLintTester Test.java
jjg@1915 31 * @compile -Xdoclint:all Test.java
jjg@1913 32 */
jjg@1913 33
jjg@1913 34 // no doc comment
jjg@1913 35 package good;
jjg@1913 36
jjg@1915 37 /** */
jjg@1913 38 class Test { }
jjg@1913 39

mercurial