test/tools/javac/processing/6413690/T6413690.java

changeset 699
d2aaaec153e8
parent 554
9d9f26857129
child 1466
b52a38d4536c
     1.1 --- a/test/tools/javac/processing/6413690/T6413690.java	Wed Sep 29 14:01:37 2010 -0700
     1.2 +++ b/test/tools/javac/processing/6413690/T6413690.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     6413690 6380018
    1.12   * @summary JavacProcessingEnvironment does not enter trees from preceding rounds
    1.13   * @author  Peter von der Ah\u00e9
    1.14 + * @library ../../lib
    1.15 + * @build   JavacTestingAbstractProcessor
    1.16   * @compile T6413690.java
    1.17   * @compile -XDfatalEnterError -verbose -processor T6413690 src/Super.java TestMe.java
    1.18   */
    1.19 @@ -42,11 +44,9 @@
    1.20  import javax.lang.model.util.Elements;
    1.21  
    1.22  @SupportedAnnotationTypes("TestMe")
    1.23 -public class T6413690 extends AbstractProcessor {
    1.24 +public class T6413690 extends JavacTestingAbstractProcessor {
    1.25      public boolean process(Set<? extends TypeElement> annotations,
    1.26                             RoundEnvironment roundEnvironment) {
    1.27 -        Elements elements = processingEnv.getElementUtils();
    1.28 -        Filer filer = processingEnv.getFiler();
    1.29          TypeElement testMe = elements.getTypeElement(TestMe.class.getName());
    1.30          Set<? extends Element> supers = roundEnvironment.getElementsAnnotatedWith(testMe);
    1.31          try {

mercurial