equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2006, 2015, 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. |
25 * @test |
25 * @test |
26 * @bug 6403468 |
26 * @bug 6403468 |
27 * @summary Test that an erroneous return code results from raising an error. |
27 * @summary Test that an erroneous return code results from raising an error. |
28 * @author Joseph D. Darcy |
28 * @author Joseph D. Darcy |
29 * @library /tools/javac/lib |
29 * @library /tools/javac/lib |
|
30 * @modules jdk.compiler/com.sun.tools.javac.main |
30 * @build JavacTestingAbstractProcessor CompileFail |
31 * @build JavacTestingAbstractProcessor CompileFail |
31 * @compile TestReturnCode.java |
32 * @compile TestReturnCode.java |
32 * |
33 * |
33 * @compile -processor TestReturnCode -proc:only Foo.java |
34 * @compile -processor TestReturnCode -proc:only Foo.java |
34 * @run main CompileFail ERROR -processor TestReturnCode -proc:only -AErrorOnFirst Foo.java |
35 * @run main CompileFail ERROR -processor TestReturnCode -proc:only -AErrorOnFirst Foo.java |