test/tools/javac/processing/6512707/T6512707.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
+ * 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,12 +24,13 @@
/*
* @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,18 +40,12 @@
/**
* 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 class T6512707 extends JavacTestingAbstractProcessor {
public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) {
- return(false);
- }
-
- @Override
- public SourceVersion getSupportedSourceVersion() {
- return SourceVersion.latest();
+ return false;
}
}