1.1 --- a/test/tools/javac/processing/model/element/TestElement.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/element/TestElement.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,7 +26,8 @@ 1.11 * @bug 6453386 1.12 * @summary Test basic properties of javax.lang.element.Element 1.13 * @author Joseph D. Darcy 1.14 - * @build TestElement 1.15 + * @library ../../../lib 1.16 + * @build JavacTestingAbstractProcessor TestElement 1.17 * @compile -processor TestElement -proc:only TestElement.java 1.18 */ 1.19 1.20 @@ -43,8 +44,7 @@ 1.21 /** 1.22 * Test basic workings of javax.lang.element.Element 1.23 */ 1.24 -@SupportedAnnotationTypes("*") 1.25 -public class TestElement extends AbstractProcessor { 1.26 +public class TestElement extends JavacTestingAbstractProcessor { 1.27 /** 1.28 * For now, just check that constructors have a simple name of 1.29 * "<init>". 1.30 @@ -66,9 +66,4 @@ 1.31 } 1.32 return true; 1.33 } 1.34 - 1.35 - public SourceVersion getSupportedSourceVersion() { 1.36 - return SourceVersion.latest(); 1.37 - } 1.38 - 1.39 }