Mercurial > hg > graal-jvmci-8
diff test/runtime/CommandLine/CompilerConfigFileWarning.java @ 17667:cd7a42c7be06
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/CompilerConfigFileWarning.java Wed Feb 05 15:14:47 2014 -0800 +++ b/test/runtime/CommandLine/CompilerConfigFileWarning.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 CompilerConfigFileWarning { 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; }