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 8167063 27 * @library /test/lib 28 * @build jdk.test.lib.Platform 29 * jdk.test.lib.util.FileUtils 30 * @run main LauncherMessageTest 31 * @summary LauncherHelper should not throw JNI error for LinkageError 32 */ 33 34 import java.io.File; 35 import java.nio.file.Paths; 36 import java.util.ArrayList; 37 import java.util.List; 38 import jdk.test.lib.util.FileUtils; 39 40 public class LauncherMessageTest { 41 42 public static void main(String[] args) throws Exception { 43 String userDir = System.getProperty("user.dir", "."); 44 File testDir = new File(userDir, "test"); 45 List<String> srcContent = new ArrayList<>(); 46 47 // Try to create a test directory before proceeding further | 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 8167063 27 * @library /test/lib 28 * @modules jdk.compiler 29 * jdk.zipfs 30 * @build jdk.test.lib.Platform 31 * jdk.test.lib.util.FileUtils 32 * @run main LauncherMessageTest 33 * @summary LauncherHelper should not throw JNI error for LinkageError 34 */ 35 36 import java.io.File; 37 import java.nio.file.Paths; 38 import java.util.ArrayList; 39 import java.util.List; 40 import jdk.test.lib.util.FileUtils; 41 42 public class LauncherMessageTest { 43 44 public static void main(String[] args) throws Exception { 45 String userDir = System.getProperty("user.dir", "."); 46 File testDir = new File(userDir, "test"); 47 List<String> srcContent = new ArrayList<>(); 48 49 // Try to create a test directory before proceeding further |