test/tools/javac/T6423583.java

changeset 495
fe17a9dbef03
parent 1
9a66ca7c79fa
child 554
9d9f26857129
equal deleted inserted replaced
494:af18e3956985 495:fe17a9dbef03
35 import javax.lang.model.element.*; 35 import javax.lang.model.element.*;
36 import com.sun.source.tree.*; 36 import com.sun.source.tree.*;
37 import com.sun.source.util.*; 37 import com.sun.source.util.*;
38 38
39 @SupportedAnnotationTypes("*") 39 @SupportedAnnotationTypes("*")
40 @SupportedSourceVersion(SourceVersion.RELEASE_6)
41 public class T6423583 extends AbstractProcessor { 40 public class T6423583 extends AbstractProcessor {
42 boolean b1 = true; 41 boolean b1 = true;
43 boolean b2 = false; 42 boolean b2 = false;
44 String s = "s"; 43 String s = "s";
45 char c = 'c'; 44 char c = 'c';
57 test.scan(t, null); 56 test.scan(t, null);
58 } 57 }
59 return true; 58 return true;
60 } 59 }
61 60
61 @Override
62 public SourceVersion getSupportedSourceVersion() {
63 return SourceVersion.latest();
64 }
62 65
63 private static class Test extends TreeScanner<Void,Void> { 66 private static class Test extends TreeScanner<Void,Void> {
64 67
65 private static Map<Tree.Kind, Class> map = new HashMap<Tree.Kind, Class>(); 68 private static Map<Tree.Kind, Class> map = new HashMap<Tree.Kind, Class>();
66 static { 69 static {

mercurial