1.1 --- a/test/tools/javac/processing/model/util/NoSupers.java Wed Sep 29 14:01:37 2010 -0700 1.2 +++ b/test/tools/javac/processing/model/util/NoSupers.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 6346453 1.12 * @summary directSupertypes should return empty list if arg has no supertypes 1.13 * @author Scott Seligman 1.14 - * @build NoSupers 1.15 + * @library ../../../lib 1.16 + * @build JavacTestingAbstractProcessor NoSupers 1.17 * @compile -processor NoSupers -proc:only NoSupers.java 1.18 */ 1.19 1.20 @@ -36,16 +37,7 @@ 1.21 import javax.lang.model.type.*; 1.22 import javax.lang.model.util.*; 1.23 1.24 -@SupportedAnnotationTypes("*") 1.25 -public class NoSupers extends AbstractProcessor { 1.26 - 1.27 - Types types; 1.28 - 1.29 - public void init(ProcessingEnvironment penv) { 1.30 - super.init(penv); 1.31 - types = penv.getTypeUtils(); 1.32 - } 1.33 - 1.34 +public class NoSupers extends JavacTestingAbstractProcessor { 1.35 public boolean process(Set<? extends TypeElement> tes, 1.36 RoundEnvironment round) { 1.37 if (round.processingOver()) return true;