1 /* |
1 /* |
2 * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 6512707 |
26 * @bug 6512707 |
27 * @summary "incompatible types" after (unrelated) annotation processing |
27 * @summary "incompatible types" after (unrelated) annotation processing |
28 * @author Peter Runge |
28 * @author Peter Runge |
|
29 * @library ../../lib |
|
30 * @build JavacTestingAbstractProcessor |
29 * @compile T6512707.java |
31 * @compile T6512707.java |
30 * |
|
31 * @compile -processor T6512707 TestAnnotation.java |
32 * @compile -processor T6512707 TestAnnotation.java |
32 */ |
33 */ |
33 |
34 |
34 import java.util.Set; |
35 import java.util.Set; |
35 import javax.annotation.processing.*; |
36 import javax.annotation.processing.*; |
39 |
40 |
40 /** |
41 /** |
41 * Dummy processor to force bug 6512707 to show - it does not matter what |
42 * Dummy processor to force bug 6512707 to show - it does not matter what |
42 * the annotation processor does for this bug. |
43 * the annotation processor does for this bug. |
43 */ |
44 */ |
44 @SupportedAnnotationTypes("*") |
45 public class T6512707 extends JavacTestingAbstractProcessor { |
45 public class T6512707 extends AbstractProcessor { |
|
46 |
46 |
47 public boolean process(Set<? extends TypeElement> annotations, |
47 public boolean process(Set<? extends TypeElement> annotations, |
48 RoundEnvironment roundEnv) { |
48 RoundEnvironment roundEnv) { |
49 return(false); |
49 return false; |
50 } |
|
51 |
|
52 @Override |
|
53 public SourceVersion getSupportedSourceVersion() { |
|
54 return SourceVersion.latest(); |
|
55 } |
50 } |
56 } |
51 } |