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

Tue, 25 May 2010 15:54:51 -0700

author
ohair
date
Tue, 25 May 2010 15:54:51 -0700
changeset 554
9d9f26857129
parent 504
6eca0895a644
child 699
d2aaaec153e8
permissions
-rw-r--r--

6943119: Rebrand source copyright notices
Reviewed-by: darcy

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 *
jjg@504 29 * @build DummyProcessor
jjg@504 30 * @compile/fail clss41701.java
jjg@504 31 * @compile/fail -processor DummyProcessor clss41701.java
jjg@504 32 */
jjg@504 33
jjg@504 34 import java.io.PrintStream;
jjg@504 35
jjg@504 36 interface clss41701i {
jjg@504 37 void run();
jjg@504 38 }
jjg@504 39
jjg@504 40 class clss41701a<A extends clss41701i,
jjg@504 41 B extends clss41701i,
jjg@504 42 C extends A&B> {
jjg@504 43 }

mercurial