test/tools/javac/processing/6512707/T6512707.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 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) 2008, 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,35 **** /* * @test * @bug 6512707 * @summary "incompatible types" after (unrelated) annotation processing * @author Peter Runge * @compile T6512707.java - * * @compile -processor T6512707 TestAnnotation.java */ import java.util.Set; import javax.annotation.processing.*; --- 24,36 ---- /* * @test * @bug 6512707 * @summary "incompatible types" after (unrelated) annotation processing * @author Peter Runge + * @library ../../lib + * @build JavacTestingAbstractProcessor * @compile T6512707.java * @compile -processor T6512707 TestAnnotation.java */ import java.util.Set; import javax.annotation.processing.*;
*** 39,56 **** /** * Dummy processor to force bug 6512707 to show - it does not matter what * the annotation processor does for this bug. */ ! @SupportedAnnotationTypes("*") ! public class T6512707 extends AbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { ! return(false); ! } ! ! @Override ! public SourceVersion getSupportedSourceVersion() { ! return SourceVersion.latest(); } } --- 40,51 ---- /** * Dummy processor to force bug 6512707 to show - it does not matter what * the annotation processor does for this bug. */ ! public class T6512707 extends JavacTestingAbstractProcessor { public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) { ! return false; } }