test/tools/javac/annotations/typeAnnotations/TypeProcOnly.java

changeset 1690
76537856a54e
parent 1534
bec996065c45
child 2525
2eb010b6cb22
equal deleted inserted replaced
1689:137994c189e5 1690:76537856a54e
1 /* 1 /*
2 * Copyright (c) 2009, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2009, 2013, 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.
30 import javax.lang.model.util.ElementFilter; 30 import javax.lang.model.util.ElementFilter;
31 31
32 import com.sun.source.util.JavacTask; 32 import com.sun.source.util.JavacTask;
33 import com.sun.source.util.TaskEvent; 33 import com.sun.source.util.TaskEvent;
34 import com.sun.source.util.TaskListener; 34 import com.sun.source.util.TaskListener;
35 import com.sun.source.util.TreePath;
36 import com.sun.tools.javac.main.JavaCompiler; 35 import com.sun.tools.javac.main.JavaCompiler;
37 import com.sun.tools.javac.main.JavaCompiler.CompileState;
38 import com.sun.tools.javac.processing.JavacProcessingEnvironment; 36 import com.sun.tools.javac.processing.JavacProcessingEnvironment;
39 import com.sun.tools.javac.util.Context; 37 import com.sun.tools.javac.util.Context;
38
39 import static com.sun.tools.javac.comp.CompileStates.CompileState;
40 40
41 /* 41 /*
42 * @test 42 * @test
43 * @summary test that type processors are run when -proc:only is passed. 43 * @summary test that type processors are run when -proc:only is passed.
44 * This class implements the functionality of a type processor, as previously 44 * This class implements the functionality of a type processor, as previously

mercurial