1.1 --- a/test/tools/javac/processing/model/type/NoTypes.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/type/NoTypes.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 6418666 6423973 6453386 1.12 * @summary Test the NoTypes: VOID, PACKAGE, NONE 1.13 * @author Scott Seligman 1.14 + * @library ../../../lib 1.15 + * @build JavacTestingAbstractProcessor 1.16 * @compile -g NoTypes.java 1.17 * @compile -processor NoTypes -proc:only NoTypes.java 1.18 */ 1.19 @@ -39,18 +41,7 @@ 1.20 1.21 import static javax.lang.model.type.TypeKind.*; 1.22 1.23 -@SupportedAnnotationTypes("*") 1.24 -public class NoTypes extends AbstractProcessor { 1.25 - 1.26 - Elements elements; 1.27 - Types types; 1.28 - 1.29 - public void init(ProcessingEnvironment penv) { 1.30 - super.init(penv); 1.31 - elements = penv.getElementUtils(); 1.32 - types = penv.getTypeUtils(); 1.33 - } 1.34 - 1.35 +public class NoTypes extends JavacTestingAbstractProcessor { 1.36 public boolean process(Set<? extends TypeElement> annoTypes, 1.37 RoundEnvironment round) { 1.38 if (!round.processingOver()) 1.39 @@ -58,11 +49,6 @@ 1.40 return true; 1.41 } 1.42 1.43 - @Override 1.44 - public SourceVersion getSupportedSourceVersion() { 1.45 - return SourceVersion.latest(); 1.46 - } 1.47 - 1.48 private void doit(Set<? extends TypeElement> annoTypes, 1.49 RoundEnvironment round) { 1.50