1.1 --- a/test/runtime/CommandLine/CompilerConfigFileWarning.java Wed Feb 05 15:14:47 2014 -0800 1.2 +++ b/test/runtime/CommandLine/CompilerConfigFileWarning.java Thu Jan 16 10:51:16 2014 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -33,8 +33,7 @@ 1.11 1.12 public class CompilerConfigFileWarning { 1.13 public static void main(String[] args) throws Exception { 1.14 - String vmVersion = System.getProperty("java.vm.version"); 1.15 - if (vmVersion.toLowerCase().contains("debug") || vmVersion.toLowerCase().contains("jvmg")) { 1.16 + if (Platform.isDebugBuild()) { 1.17 System.out.println("Skip on debug builds since we'll always read the file there"); 1.18 return; 1.19 }