langtools/test/tools/javac/processing/6511613/clss41701.java
author darcy
Fri, 21 Dec 2012 08:45:43 -0800
changeset 14963 974d4423c999
parent 6720 f16f91662ad8
child 28335 0b37a4232e35
permissions -rw-r--r--
8005282: Use @library tag with non-relative path for javac tests Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5001
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     1
/*
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5001
diff changeset
     2
 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
5001
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     4
 *
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     8
 *
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    13
 * accompanied this code).
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    14
 *
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    18
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5001
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5001
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 5001
diff changeset
    21
 * questions.
5001
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    22
 */
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    23
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    24
/*
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    25
 * @test
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    26
 * @bug 6511613
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    27
 * @summary javac unexpectedly doesn't fail in some cases if an annotation processor specified
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    28
 *
14963
974d4423c999 8005282: Use @library tag with non-relative path for javac tests
darcy
parents: 6720
diff changeset
    29
 * @library /tools/javac/lib
6720
f16f91662ad8 6983738: Use a JavacTestingAbstractProcessor
darcy
parents: 5520
diff changeset
    30
 * @build JavacTestingAbstractProcessor DummyProcessor
5001
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    31
 * @compile/fail clss41701.java
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    32
 * @compile/fail -processor DummyProcessor clss41701.java
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    33
 */
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    34
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    35
import java.io.PrintStream;
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    36
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    37
interface clss41701i {
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    38
    void run();
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    39
}
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    40
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    41
class clss41701a<A extends clss41701i,
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    42
                 B extends clss41701i,
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    43
                 C extends A&B> {
71ed0cc22974 6511613: javac unexpectedly doesn't fail in some cases if an annotation processor specified
jjg
parents:
diff changeset
    44
}