langtools/test/tools/javac/annotations/typeAnnotations/TypeProcOnly.java
changeset 16968 19f0da2d3143
parent 15557 3e211bbf4094
child 30730 d3ce7619db2c
equal deleted inserted replaced
16967:79d444669f3f 16968:19f0da2d3143
     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