test/tools/javac/processing/6365040/ProcBar.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.
*** 29,43 **** import static javax.tools.Diagnostic.Kind.*; /** * Second of several processors to run. */ ! @SupportedAnnotationTypes("*") ! public class ProcBar extends AbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment) { if (!roundEnvironment.processingOver()) ! processingEnv.getMessager().printMessage(NOTE, ! "Hello from ProcBar"); return false; } } --- 29,41 ---- import static javax.tools.Diagnostic.Kind.*; /** * Second of several processors to run. */ ! public class ProcBar extends JavacTestingAbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnvironment) { if (!roundEnvironment.processingOver()) ! messager.printMessage(NOTE, "Hello from ProcBar"); return false; } }