langtools/test/tools/javac/lib/CompileFail.java
changeset 27579 d1a63c99cdd5
parent 10638 c8e9604cf151
equal deleted inserted replaced
27578:d61af14a5cf7 27579:d1a63c99cdd5
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2014, 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.
    35             throw new IllegalArgumentException("insufficient args");
    35             throw new IllegalArgumentException("insufficient args");
    36         int expected_rc = getReturnCode(args[0]);
    36         int expected_rc = getReturnCode(args[0]);
    37 
    37 
    38         List<String> javacArgs = new ArrayList<>();
    38         List<String> javacArgs = new ArrayList<>();
    39         javacArgs.addAll(Arrays.asList(
    39         javacArgs.addAll(Arrays.asList(
    40             "-bootclasspath", System.getProperty("sun.boot.class.path"),
       
    41             "-d", "."
    40             "-d", "."
    42         ));
    41         ));
    43 
    42 
    44         File testSrc = new File(System.getProperty("test.src"));
    43         File testSrc = new File(System.getProperty("test.src"));
    45         for (int i = 1; i < args.length; i++) { // skip first arg
    44         for (int i = 1; i < args.length; i++) { // skip first arg