Mon, 16 Sep 2013 14:13:44 +0200
8021112: Spurious unchecked warning reported by javac
6480588: No way to suppress deprecation warnings when implementing deprecated interface
Summary: Fixing DeferredLintHandler configuration, so lint warnings are reported with correct @SuppressWarnings settings
Reviewed-by: jjg, vromero
jjg@1724 | 1 | /* |
jjg@1724 | 2 | * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
jjg@1724 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@1724 | 4 | * |
jjg@1724 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@1724 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@1724 | 7 | * published by the Free Software Foundation. |
jjg@1724 | 8 | * |
jjg@1724 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@1724 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@1724 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@1724 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@1724 | 13 | * accompanied this code). |
jjg@1724 | 14 | * |
jjg@1724 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@1724 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@1724 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@1724 | 18 | * |
jjg@1724 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@1724 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@1724 | 21 | * questions. |
jjg@1724 | 22 | */ |
jjg@1724 | 23 | |
jjg@1724 | 24 | /* |
jjg@1724 | 25 | * @test |
jjg@1724 | 26 | * @bug 8008768 |
jjg@1724 | 27 | * @summary Using {@inheritDoc} in simple tag defined via -tag fails |
jjg@1724 | 28 | * @library ../lib/ |
jjg@1724 | 29 | * @build JavadocTester TestSimpleTagInherit |
jjg@1724 | 30 | * @run main TestSimpleTagInherit |
jjg@1724 | 31 | */ |
jjg@1724 | 32 | |
jjg@1724 | 33 | public class TestSimpleTagInherit extends JavadocTester { |
jjg@1724 | 34 | |
jjg@1724 | 35 | //Test information. |
jjg@1724 | 36 | private static final String BUG_ID = "8008768"; |
jjg@1724 | 37 | private static final String OUTPUT_DIR = BUG_ID; |
jjg@1724 | 38 | |
jjg@1724 | 39 | //Javadoc arguments. |
jjg@1724 | 40 | private static final String[] ARGS = new String[] { |
jjg@1724 | 41 | "-d", OUTPUT_DIR, "-sourcepath", SRC_DIR, |
jjg@1724 | 42 | "-tag", "custom:optcm:<em>Custom:</em>", |
jjg@1724 | 43 | "p" |
jjg@1724 | 44 | }; |
jjg@1724 | 45 | |
jjg@1724 | 46 | //Input for string search tests. |
jjg@1724 | 47 | private static final String[][] TEST = { |
jjg@1724 | 48 | { BUG_ID + FS + "p" + FS + "TestClass.html", |
jjg@1724 | 49 | "<dt><span class=\"strong\"><em>Custom:</em></span></dt>" + NL + |
jjg@1743 | 50 | "<dd>doc for BaseClass class</dd>" }, |
jjg@1724 | 51 | { BUG_ID + FS + "p" + FS + "TestClass.html", |
jjg@1724 | 52 | "<dt><span class=\"strong\"><em>Custom:</em></span></dt>" + NL + |
jjg@1743 | 53 | "<dd>doc for BaseClass method</dd>" } |
jjg@1724 | 54 | }; |
jjg@1724 | 55 | private static final String[][] NEGATED_TEST = NO_TEST; |
jjg@1724 | 56 | |
jjg@1724 | 57 | /** |
jjg@1724 | 58 | * The entry point of the test. |
jjg@1724 | 59 | * @param args the array of command line arguments. |
jjg@1724 | 60 | */ |
jjg@1724 | 61 | public static void main(String[] args) { |
jjg@1724 | 62 | TestSimpleTagInherit tester = new TestSimpleTagInherit(); |
jjg@1724 | 63 | run(tester, ARGS, TEST, NEGATED_TEST); |
jjg@1724 | 64 | tester.printSummary(); |
jjg@1724 | 65 | } |
jjg@1724 | 66 | |
jjg@1724 | 67 | /** |
jjg@1724 | 68 | * {@inheritDoc} |
jjg@1724 | 69 | */ |
jjg@1724 | 70 | public String getBugId() { |
jjg@1724 | 71 | return BUG_ID; |
jjg@1724 | 72 | } |
jjg@1724 | 73 | |
jjg@1724 | 74 | /** |
jjg@1724 | 75 | * {@inheritDoc} |
jjg@1724 | 76 | */ |
jjg@1724 | 77 | public String getBugName() { |
jjg@1724 | 78 | return getClass().getName(); |
jjg@1724 | 79 | } |
jjg@1724 | 80 | } |