comparison test/runtime/CommandLine/CompilerConfigFileWarning.java @ 14909:4ca6dc0799b6

Backout jdk9 merge
author Gilles Duboscq <duboscq@ssw.jku.at>
date Tue, 01 Apr 2014 13:57:07 +0200
parents 234d576115b5
children 52b4284cb496
comparison
equal deleted inserted replaced
14908:8db6e76cb658 14909:4ca6dc0799b6
1 /* 1 /*
2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 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.
31 import java.io.PrintWriter; 31 import java.io.PrintWriter;
32 import com.oracle.java.testlibrary.*; 32 import com.oracle.java.testlibrary.*;
33 33
34 public class CompilerConfigFileWarning { 34 public class CompilerConfigFileWarning {
35 public static void main(String[] args) throws Exception { 35 public static void main(String[] args) throws Exception {
36 if (Platform.isDebugBuild()) { 36 String vmVersion = System.getProperty("java.vm.version");
37 if (vmVersion.toLowerCase().contains("debug") || vmVersion.toLowerCase().contains("jvmg")) {
37 System.out.println("Skip on debug builds since we'll always read the file there"); 38 System.out.println("Skip on debug builds since we'll always read the file there");
38 return; 39 return;
39 } 40 }
40 41
41 PrintWriter pw = new PrintWriter(".hotspot_compiler"); 42 PrintWriter pw = new PrintWriter(".hotspot_compiler");