test/tools/javac/processing/6511613/clss41701.java

Fri, 21 Dec 2012 08:45:43 -0800

author
darcy
date
Fri, 21 Dec 2012 08:45:43 -0800
changeset 1466
b52a38d4536c
parent 699
d2aaaec153e8
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8005282: Use @library tag with non-relative path for javac tests
Reviewed-by: jjg

jjg@504 1 /*
ohair@554 2 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
jjg@504 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@504 4 *
jjg@504 5 * This code is free software; you can redistribute it and/or modify it
jjg@504 6 * under the terms of the GNU General Public License version 2 only, as
jjg@504 7 * published by the Free Software Foundation.
jjg@504 8 *
jjg@504 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@504 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@504 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@504 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@504 13 * accompanied this code).
jjg@504 14 *
jjg@504 15 * You should have received a copy of the GNU General Public License version
jjg@504 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@504 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@504 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@504 22 */
jjg@504 23
jjg@504 24 /*
jjg@504 25 * @test
jjg@504 26 * @bug 6511613
jjg@504 27 * @summary javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg@504 28 *
darcy@1466 29 * @library /tools/javac/lib
darcy@699 30 * @build JavacTestingAbstractProcessor DummyProcessor
jjg@504 31 * @compile/fail clss41701.java
jjg@504 32 * @compile/fail -processor DummyProcessor clss41701.java
jjg@504 33 */
jjg@504 34
jjg@504 35 import java.io.PrintStream;
jjg@504 36
jjg@504 37 interface clss41701i {
jjg@504 38 void run();
jjg@504 39 }
jjg@504 40
jjg@504 41 class clss41701a<A extends clss41701i,
jjg@504 42 B extends clss41701i,
jjg@504 43 C extends A&B> {
jjg@504 44 }

mercurial