langtools/test/tools/javac/annotations/typeAnnotations/packageanno/PackageProcessor.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.
    29 import javax.lang.model.util.ElementFilter;
    29 import javax.lang.model.util.ElementFilter;
    30 
    30 
    31 import com.sun.source.util.JavacTask;
    31 import com.sun.source.util.JavacTask;
    32 import com.sun.source.util.TaskEvent;
    32 import com.sun.source.util.TaskEvent;
    33 import com.sun.source.util.TaskListener;
    33 import com.sun.source.util.TaskListener;
    34 import com.sun.source.util.TreePath;
       
    35 import com.sun.tools.javac.main.JavaCompiler;
    34 import com.sun.tools.javac.main.JavaCompiler;
    36 import com.sun.tools.javac.main.JavaCompiler.CompileState;
       
    37 import com.sun.tools.javac.processing.JavacProcessingEnvironment;
    35 import com.sun.tools.javac.processing.JavacProcessingEnvironment;
    38 import com.sun.tools.javac.util.Context;
    36 import com.sun.tools.javac.util.Context;
       
    37 
       
    38 import static com.sun.tools.javac.comp.CompileStates.CompileState;
    39 
    39 
    40 /*
    40 /*
    41  * @test
    41  * @test
    42  * @summary test that package annotations are available to type processors.
    42  * @summary test that package annotations are available to type processors.
    43  * This class implements the functionality of a type processor, as previously
    43  * This class implements the functionality of a type processor, as previously