Sat, 22 Dec 2018 13:10:38 -0800
Added tag jdk8u202-b25 for changeset 15d8c732039b
jjh@1188 | 1 | /* |
jjg@1521 | 2 | * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. |
jjh@1188 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jjh@1188 | 4 | * |
jjh@1188 | 5 | * This code is free software; you can redistribute it and/or modify it |
jjh@1188 | 6 | * under the terms of the GNU General Public License version 2 only, as |
jjh@1188 | 7 | * published by the Free Software Foundation. Oracle designates this |
jjh@1188 | 8 | * particular file as subject to the "Classpath" exception as provided |
jjh@1188 | 9 | * by Oracle in the LICENSE file that accompanied this code. |
jjh@1188 | 10 | * |
jjh@1188 | 11 | * This code is distributed in the hope that it will be useful, but WITHOUT |
jjh@1188 | 12 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jjh@1188 | 13 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jjh@1188 | 14 | * version 2 for more details (a copy is included in the LICENSE file that |
jjh@1188 | 15 | * accompanied this code). |
jjh@1188 | 16 | * |
jjh@1188 | 17 | * You should have received a copy of the GNU General Public License version |
jjh@1188 | 18 | * 2 along with this work; if not, write to the Free Software Foundation, |
jjh@1188 | 19 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jjh@1188 | 20 | * |
jjh@1188 | 21 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jjh@1188 | 22 | * or visit www.oracle.com if you need additional information or have any |
jjh@1188 | 23 | * questions. |
jjh@1188 | 24 | */ |
jjh@1188 | 25 | |
jjh@1188 | 26 | /* @test |
jjh@1188 | 27 | * @bug 7129225 |
jjh@1188 | 28 | * @summary import xxx.* isn't handled correctly by annotation processing |
darcy@1466 | 29 | * @library /tools/javac/lib |
jjh@1189 | 30 | * @build JavacTestingAbstractProcessor |
jjh@1188 | 31 | * @compile/fail/ref=NegTest.ref -XDrawDiagnostics TestImportStar.java |
jjh@1188 | 32 | * @compile Anno.java AnnoProcessor.java |
jjg@1521 | 33 | * @compile/fail/ref=TestImportStar.ref -XDrawDiagnostics -processor AnnoProcessor -proc:only TestImportStar.java |
jjh@1188 | 34 | */ |
jjh@1188 | 35 | |
jjh@1188 | 36 | //The @compile/fail... verifies that the fix doesn't break the normal compilation of import xxx.* |
jjh@1188 | 37 | //The @comple/ref... verifies the fix fixes the bug |
jjh@1188 | 38 | |
jjh@1188 | 39 | import xxx.*; |
jjh@1188 | 40 | |
jjh@1188 | 41 | @Anno |
jjh@1188 | 42 | public class TestImportStar { |
jjh@1188 | 43 | } |