1.1 --- a/test/tools/javac/processing/model/type/MirroredTypeEx/OverEager.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/type/MirroredTypeEx/OverEager.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 6362178 1.12 * @summary MirroredType[s]Exception shouldn't be created too eagerly 1.13 * @author Scott Seligman 1.14 + * @library ../../../../lib 1.15 + * @build JavacTestingAbstractProcessor 1.16 * @compile -g OverEager.java 1.17 * @compile -processor OverEager -proc:only OverEager.java 1.18 */ 1.19 @@ -40,17 +42,7 @@ 1.20 1.21 @SupportedAnnotationTypes("IAm") 1.22 @IAm(OverEager.class) 1.23 -public class OverEager extends AbstractProcessor { 1.24 - 1.25 - Elements elements; 1.26 - Types types; 1.27 - 1.28 - public void init(ProcessingEnvironment penv) { 1.29 - super.init(penv); 1.30 - elements = penv.getElementUtils(); 1.31 - types = penv.getTypeUtils(); 1.32 - } 1.33 - 1.34 +public class OverEager extends JavacTestingAbstractProcessor { 1.35 public boolean process(Set<? extends TypeElement> annoTypes, 1.36 RoundEnvironment round) { 1.37 if (!round.processingOver()) 1.38 @@ -58,11 +50,6 @@ 1.39 return true; 1.40 } 1.41 1.42 - @Override 1.43 - public SourceVersion getSupportedSourceVersion() { 1.44 - return SourceVersion.latest(); 1.45 - } 1.46 - 1.47 private void doit(Set<? extends TypeElement> annoTypes, 1.48 RoundEnvironment round) { 1.49 for (TypeElement t : typesIn(round.getRootElements())) {