jjg@711: /* jjg@711: * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. jjg@711: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@711: * jjg@711: * This code is free software; you can redistribute it and/or modify it jjg@711: * under the terms of the GNU General Public License version 2 only, as jjg@711: * published by the Free Software Foundation. jjg@711: * jjg@711: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@711: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@711: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@711: * version 2 for more details (a copy is included in the LICENSE file that jjg@711: * accompanied this code). jjg@711: * jjg@711: * You should have received a copy of the GNU General Public License version jjg@711: * 2 along with this work; if not, write to the Free Software Foundation, jjg@711: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@711: * jjg@711: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jjg@711: * or visit www.oracle.com if you need additional information or have any jjg@711: * questions. jjg@711: */ jjg@711: jjg@711: /* jjg@711: * @test jjg@711: * @bug 6988407 jjg@711: * @summary javac crashes running processor on errant code; it used to print error message darcy@1466: * @library /tools/javac/lib jjg@711: * @build JavacTestingAbstractProcessor TestParseErrors jjg@711: * @compile/fail/ref=TestParseErrors.out -XDrawDiagnostics -proc:only -processor TestParseErrors ParseErrors.java jjg@711: */ jjg@711: jjg@711: import java.util.*; jjg@711: import javax.annotation.processing.*; jjg@711: import javax.lang.model.element.*; jjg@711: jjg@711: public class TestParseErrors extends JavacTestingAbstractProcessor { jjg@711: jjg@711: public boolean process(Set annotations, jjg@711: RoundEnvironment roundEnvironment) { jjg@711: throw new Error("Should not be called"); jjg@711: } jjg@711: }