test/tools/javac/processing/model/6194785/T6194785.java

changeset 699
d2aaaec153e8
parent 575
9a7c998bf2fc
child 1054
111bbf1ad913
     1.1 --- a/test/tools/javac/processing/model/6194785/T6194785.java	Wed Sep 29 14:01:37 2010 -0700
     1.2 +++ b/test/tools/javac/processing/model/6194785/T6194785.java	Wed Sep 29 23:27:57 2010 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -26,6 +26,8 @@
    1.11   * @bug     6194785
    1.12   * @summary ParameterDeclaration.getSimpleName does not return actual name from class files
    1.13   * @author  Peter von der Ah\u00e9
    1.14 + * @library ../../../lib
    1.15 + * @build   JavacTestingAbstractProcessor
    1.16   * @compile -g T6194785.java T6194785a.java
    1.17   * @compile -processor T6194785 foo.T6194785a T6194785.java
    1.18   */
    1.19 @@ -36,13 +38,10 @@
    1.20  import javax.lang.model.util.*;
    1.21  import static javax.tools.Diagnostic.Kind.*;
    1.22  
    1.23 -@SupportedAnnotationTypes("*")
    1.24 -public class T6194785 extends AbstractProcessor {
    1.25 +public class T6194785 extends JavacTestingAbstractProcessor {
    1.26      public boolean process(Set<? extends TypeElement> annotations,
    1.27                             RoundEnvironment roundEnvironment)
    1.28      {
    1.29 -        final Messager log = processingEnv.getMessager();
    1.30 -        final Elements elements = processingEnv.getElementUtils();
    1.31          class Scan extends ElementScanner7<Void,Void> {
    1.32              @Override
    1.33              public Void visitExecutable(ExecutableElement e, Void ignored) {

mercurial