8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8047183
27 * @summary JDK build fails with sjavac enabled
28 *
29 * @modules jdk.compiler
30 * @build Wrapper
31 * @run main Wrapper IgnoreSymbolFile
32 */
33
34 import java.io.File;
35 import java.io.FileWriter;
36 import java.io.IOException;
37 import java.io.PrintStream;
38 import java.lang.reflect.Method;
39 import java.util.Arrays;
40
41 public class IgnoreSymbolFile {
42 public static void main(String... args) throws Exception {
43 IgnoreSymbolFile test = new IgnoreSymbolFile();
44 test.run();
45 }
46
47 void run() throws Exception {
48 String body =
49 "package p;\n"
|
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 8047183
27 * @summary JDK build fails with sjavac enabled
28 * @modules jdk.compiler/com.sun.tools.sjavac
29 * @build Wrapper
30 * @run main Wrapper IgnoreSymbolFile
31 */
32
33 import java.io.File;
34 import java.io.FileWriter;
35 import java.io.IOException;
36 import java.io.PrintStream;
37 import java.lang.reflect.Method;
38 import java.util.Arrays;
39
40 public class IgnoreSymbolFile {
41 public static void main(String... args) throws Exception {
42 IgnoreSymbolFile test = new IgnoreSymbolFile();
43 test.run();
44 }
45
46 void run() throws Exception {
47 String body =
48 "package p;\n"
|