jjg@1334: /* jjg@1334: * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. jjg@1334: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@1334: * jjg@1334: * This code is free software; you can redistribute it and/or modify it jjg@1334: * under the terms of the GNU General Public License version 2 only, as jjg@1334: * published by the Free Software Foundation. jjg@1334: * jjg@1334: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@1334: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@1334: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@1334: * version 2 for more details (a copy is included in the LICENSE file that jjg@1334: * accompanied this code). jjg@1334: * jjg@1334: * You should have received a copy of the GNU General Public License version jjg@1334: * 2 along with this work; if not, write to the Free Software Foundation, jjg@1334: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@1334: * jjg@1334: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jjg@1334: * or visit www.oracle.com if you need additional information or have any jjg@1334: * questions. jjg@1334: */ jjg@1334: jjg@1334: /* jjg@1334: * @test jjg@1334: * @bug 7196462 jjg@1334: * @summary JavacProcessingEnvironment should tolerate BasicJavacTask darcy@1466: * @library /tools/javac/lib jjg@1334: * @build JavacTestingAbstractProcessor T7196462 jjg@1334: * @compile/process -processor T7196462 T7196462.java jjg@1334: */ jjg@1334: jjg@1334: import java.util.*; jjg@1334: import javax.annotation.processing.*; jjg@1334: import javax.lang.model.element.*; jjg@1334: import com.sun.source.util.*; jjg@1334: jjg@1334: public class T7196462 extends JavacTestingAbstractProcessor { jjg@1334: public boolean process(Set annos,RoundEnvironment rEnv) { jjg@1334: JavacTask t = JavacTask.instance(processingEnv); jjg@1334: System.err.println(t); jjg@1334: return true; jjg@1334: } jjg@1334: }