Mercurial > hg > truffle
diff test/runtime/CommandLine/ConfigFileWarning.java @ 14276:234d576115b5
8027314: Java should recognize Diagnostic options if -XX:+UnlockDiagnosticVMOptions is not specified and print an informative message
Summary: clarifying the error messages associated with vm options of type diagnostic, experimental, develop, and notproduct
Reviewed-by: kvn, twisti, ctornqvi
author | ccheung |
---|---|
date | Thu, 16 Jan 2014 10:51:16 -0800 |
parents | 2bffd20a0fcc |
children | 4ca6dc0799b6 |
line wrap: on
line diff
--- a/test/runtime/CommandLine/ConfigFileWarning.java Wed Jan 15 19:12:45 2014 -0500 +++ b/test/runtime/CommandLine/ConfigFileWarning.java Thu Jan 16 10:51:16 2014 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,8 +33,7 @@ public class ConfigFileWarning { public static void main(String[] args) throws Exception { - String vmVersion = System.getProperty("java.vm.version"); - if (vmVersion.toLowerCase().contains("debug") || vmVersion.toLowerCase().contains("jvmg")) { + if (Platform.isDebugBuild()) { System.out.println("Skip on debug builds since we'll always read the file there"); return; }