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@1386 | 1 | /* |
jjg@1492 | 2 | * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
jjg@1386 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjg@1386 | 4 | * |
jjg@1386 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjg@1386 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjg@1386 | 7 | * published by the Free Software Foundation. |
jjg@1386 | 8 | * |
jjg@1386 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjg@1386 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjg@1386 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjg@1386 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
jjg@1386 | 13 | * accompanied this code). |
jjg@1386 | 14 | * |
jjg@1386 | 15 | * You should have received a copy of the GNU General Public License version |
jjg@1386 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjg@1386 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjg@1386 | 18 | * |
jjg@1386 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjg@1386 | 20 | * or visit www.oracle.com if you need additional information or have any |
jjg@1386 | 21 | * questions. |
jjg@1386 | 22 | */ |
jjg@1386 | 23 | |
jjg@1386 | 24 | /** |
jjg@1386 | 25 | * @test |
jjg@1386 | 26 | * @bug 7169362 |
jjg@1386 | 27 | * @author sogoel |
jjg@1386 | 28 | * @summary ContainerType can have its own container |
jjg@1386 | 29 | * @compile MultiLevelRepeatableAnno.java |
jjg@1386 | 30 | */ |
jjg@1386 | 31 | |
jjg@1492 | 32 | import java.lang.annotation.Repeatable; |
jjg@1386 | 33 | |
jjg@1492 | 34 | @Repeatable(FooContainer.class) |
jjg@1386 | 35 | @interface Foo {} |
jjg@1386 | 36 | |
jjg@1492 | 37 | @Repeatable(FooContainerContainer.class) |
jjg@1386 | 38 | @interface FooContainer { |
jjg@1386 | 39 | Foo[] value(); |
jjg@1386 | 40 | } |
jjg@1386 | 41 | |
jjg@1386 | 42 | @interface FooContainerContainer { |
jjg@1386 | 43 | FooContainer[] value(); |
jjg@1386 | 44 | } |
jjg@1386 | 45 | |
jjg@1386 | 46 | @Foo @Foo |
jjg@1386 | 47 | public class MultiLevelRepeatableAnno {} |
jjg@1386 | 48 |