1.1 --- a/test/tools/javac/processing/model/util/deprecation/TestDeprecation.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/util/deprecation/TestDeprecation.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 6392818 1.12 * @summary Tests Elements.isDeprecated(Element) 1.13 * @author Joseph D. Darcy 1.14 + * @library ../../../../lib 1.15 + * @build JavacTestingAbstractProcessor 1.16 * @compile TestDeprecation.java 1.17 * @compile -processor TestDeprecation -proc:only Dep1.java 1.18 * @compile Dep1.java 1.19 @@ -47,8 +49,7 @@ 1.20 * getElementsAnnotatedWith is consistent with the expected results 1.21 * stored in an AnnotatedElementInfo annotation. 1.22 */ 1.23 -@SupportedAnnotationTypes("*") 1.24 -public class TestDeprecation extends AbstractProcessor { 1.25 +public class TestDeprecation extends JavacTestingAbstractProcessor { 1.26 1.27 public boolean process(Set<? extends TypeElement> annotations, 1.28 RoundEnvironment roundEnv) { 1.29 @@ -98,9 +99,4 @@ 1.30 return failure; 1.31 } 1.32 } 1.33 - 1.34 - @Override 1.35 - public SourceVersion getSupportedSourceVersion() { 1.36 - return SourceVersion.latest(); 1.37 - } 1.38 }