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@405 | 1 | /* |
jjg@405 | 2 | * Copyright 2009 Google, Inc. All Rights Reserved. |
jjg@405 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@405 | 4 | * |
jjg@405 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@405 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@405 | 7 | * published by the Free Software Foundation. |
jjg@405 | 8 | * |
jjg@405 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@405 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@405 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@405 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@405 | 13 | * accompanied this code). |
jjg@405 | 14 | * |
jjg@405 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@405 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@405 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@405 | 18 | * |
ohair@554 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
ohair@554 | 20 | * or visit www.oracle.com if you need additional information or have any |
ohair@554 | 21 | * questions. |
jjg@405 | 22 | */ |
jjg@405 | 23 | |
jjg@405 | 24 | /* |
jjg@405 | 25 | * @test |
jjg@405 | 26 | * @bug 5093723 |
jjg@405 | 27 | * @summary REGRESSION: ClassCastException in SingleIndexWriter |
jjg@405 | 28 | * @library ../lib/ |
jjg@405 | 29 | * @build JavadocTester |
jjg@405 | 30 | * @build T5093723 |
jjg@405 | 31 | * @run main T5093723 |
jjg@405 | 32 | */ |
jjg@405 | 33 | |
jjg@405 | 34 | public class T5093723 extends JavadocTester { |
jjg@405 | 35 | |
jjg@405 | 36 | private static final String BUG_ID = "5093723"; |
jjg@405 | 37 | |
jjg@405 | 38 | private static final String[] ARGS = new String[] { |
jjg@1490 | 39 | "-d", BUG_ID + ".out", "-source", "5", "-Xdoclint:none", |
jjg@405 | 40 | SRC_DIR + "/DocumentedClass.java", |
jjg@405 | 41 | SRC_DIR + "/UndocumentedClass.java" |
jjg@405 | 42 | }; |
jjg@405 | 43 | |
jjg@405 | 44 | public static void main(String... args) { |
jjg@405 | 45 | T5093723 tester = new T5093723(); |
jjg@405 | 46 | if (tester.runJavadoc(ARGS) != 0) |
jjg@405 | 47 | throw new AssertionError("non-zero return code from javadoc"); |
jjg@405 | 48 | } |
jjg@405 | 49 | |
jjg@405 | 50 | public String getBugId() { |
jjg@405 | 51 | return BUG_ID; |
jjg@405 | 52 | } |
jjg@405 | 53 | |
jjg@405 | 54 | public String getBugName() { |
jjg@405 | 55 | return getClass().getName(); |
jjg@405 | 56 | } |
jjg@405 | 57 | } |