test/tools/javac/processing/filer/TestFilerConstraints.java

changeset 699
d2aaaec153e8
parent 554
9d9f26857129
child 1466
b52a38d4536c
     1.1 --- a/test/tools/javac/processing/filer/TestFilerConstraints.java	Wed Sep 29 14:01:37 2010 -0700
     1.2 +++ b/test/tools/javac/processing/filer/TestFilerConstraints.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,7 @@
    1.11   * @bug 6380018 6453386 6457283
    1.12   * @summary Test that the constraints guaranteed by the Filer and maintained
    1.13   * @author  Joseph D. Darcy
    1.14 + * @library ../../lib
    1.15   * @build TestFilerConstraints
    1.16   * @compile -encoding iso-8859-1 -processor TestFilerConstraints -proc:only TestFilerConstraints.java
    1.17   */
    1.18 @@ -69,11 +70,8 @@
    1.19   *
    1.20   * </ul>
    1.21   */
    1.22 -@SupportedAnnotationTypes("*")
    1.23 -public class TestFilerConstraints extends AbstractProcessor {
    1.24 +public class TestFilerConstraints extends JavacTestingAbstractProcessor {
    1.25      private int round = 0;
    1.26 -    private Messager messager;
    1.27 -    private Filer filer;
    1.28  
    1.29      private PrintWriter  pw_src1 = null;
    1.30      private PrintWriter  pw_src2 = null;
    1.31 @@ -167,17 +165,6 @@
    1.32          return true;
    1.33      }
    1.34  
    1.35 -    public SourceVersion getSupportedSourceVersion() {
    1.36 -        return SourceVersion.latest();
    1.37 -    }
    1.38 -
    1.39 -    public void init(ProcessingEnvironment processingEnv) {
    1.40 -        super.init(processingEnv);
    1.41 -        messager = processingEnv.getMessager();
    1.42 -        filer    = processingEnv.getFiler();
    1.43 -
    1.44 -    }
    1.45 -
    1.46      /**
    1.47       * Test that the single expected expected type, name, is the root
    1.48       * element.

mercurial