1.1 --- a/test/tools/javac/processing/model/util/filter/TestIterables.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/util/filter/TestIterables.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 6406164 1.12 * @summary Test that ElementFilter iterable methods behave properly. 1.13 * @author Joseph D. Darcy 1.14 + * @library ../../../../lib 1.15 + * @build JavacTestingAbstractProcessor 1.16 * @compile TestIterables.java 1.17 * @compile -processor TestIterables -proc:only Foo1.java 1.18 * @compile Foo1.java 1.19 @@ -51,9 +53,8 @@ 1.20 * results. 1.21 */ 1.22 @SupportedAnnotationTypes("ExpectedElementCounts") 1.23 -@ExpectedElementCounts(methods=3) 1.24 -public class TestIterables extends AbstractProcessor { 1.25 - 1.26 +@ExpectedElementCounts(methods=2) 1.27 +public class TestIterables extends JavacTestingAbstractProcessor { 1.28 public boolean process(Set<? extends TypeElement> annotations, 1.29 RoundEnvironment roundEnv) { 1.30 if (!roundEnv.processingOver()) { 1.31 @@ -118,10 +119,4 @@ 1.32 1.33 return count1; 1.34 } 1.35 - 1.36 - @Override 1.37 - public SourceVersion getSupportedSourceVersion() { 1.38 - return SourceVersion.latest(); 1.39 - } 1.40 - 1.41 }