langtools/test/tools/javac/processing/environment/round/ParameterAnnotations.java
author jfranck
Wed, 26 Mar 2014 12:18:11 +0100
changeset 23795 62509b72088e
permissions -rw-r--r--
8038080: annotation processors don't visit declaration parameter annotations Reviewed-by: darcy Contributed-by: cushon@google.com, joel.franck@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
23795
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     1
/*
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     2
 * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     4
 *
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     7
 * published by the Free Software Foundation.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     8
 *
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    13
 * accompanied this code).
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    14
 *
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    18
 *
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    21
 * questions.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    22
 */
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    23
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    24
/**
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    25
 * Class to hold annotations for ElementsAnnotatedWithTest.
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    26
 */
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    27
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    28
@AnnotatedElementInfo(annotationName="Anno",
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    29
                      expectedSize=1,
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    30
                      names={"annotatedParameter"})
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    31
public class ParameterAnnotations {
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    32
    private void foo(@Anno Object annotatedParameter) {}
62509b72088e 8038080: annotation processors don't visit declaration parameter annotations
jfranck
parents:
diff changeset
    33
}