test/tools/javac/processing/model/util/deprecation/TestDeprecation.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2006, 2010 Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,33 **** --- 24,35 ---- /* * @test * @bug 6392818 * @summary Tests Elements.isDeprecated(Element) * @author Joseph D. Darcy + * @library ../../../../lib + * @build JavacTestingAbstractProcessor * @compile TestDeprecation.java * @compile -processor TestDeprecation -proc:only Dep1.java * @compile Dep1.java * @compile -processor TestDeprecation -proc:only Dep1 TestDeprecation.java */
*** 45,56 **** /** * This processor verifies that the information returned by * getElementsAnnotatedWith is consistent with the expected results * stored in an AnnotatedElementInfo annotation. */ ! @SupportedAnnotationTypes("*") ! public class TestDeprecation extends AbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { boolean failure = false; if (!roundEnv.processingOver()) { --- 47,57 ---- /** * This processor verifies that the information returned by * getElementsAnnotatedWith is consistent with the expected results * stored in an AnnotatedElementInfo annotation. */ ! public class TestDeprecation extends JavacTestingAbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { boolean failure = false; if (!roundEnv.processingOver()) {
*** 96,106 **** } super.scan(e, p); return failure; } } - - @Override - public SourceVersion getSupportedSourceVersion() { - return SourceVersion.latest(); - } } --- 97,102 ----