# HG changeset patch # User Doug Simon # Date 1400883929 -7200 # Node ID b7fc7cdb900596b0aa5b6f55417508328506000f # Parent 11bf5b8973c993e2ba33d5a46dabdcaffdbe8b4e HotSpotOptions error messages should go to System.err diff -r 11bf5b8973c9 -r b7fc7cdb9005 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java Sat May 24 00:23:52 2014 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/HotSpotOptions.java Sat May 24 00:25:29 2014 +0200 @@ -155,12 +155,12 @@ if (value == null) { if (optionType == Boolean.TYPE || optionType == Boolean.class) { - System.out.println("Value for boolean option '" + optionName + "' must use '-G:+" + optionName + "' or '-G:-" + optionName + "' format"); + System.err.println("Value for boolean option '" + optionName + "' must use '-G:+" + optionName + "' or '-G:-" + optionName + "' format"); return false; } if (valueString == null) { - System.out.println("Value for option '" + optionName + "' must use '-G:" + optionName + "=' format"); + System.err.println("Value for option '" + optionName + "' must use '-G:" + optionName + "=' format"); return false; } @@ -175,7 +175,7 @@ } } else { if (optionType != Boolean.class) { - System.out.println("Value for option '" + optionName + "' must use '-G:" + optionName + "=' format"); + System.err.println("Value for option '" + optionName + "' must use '-G:" + optionName + "=' format"); return false; } } @@ -186,10 +186,10 @@ } else { OptionValue optionValue = desc.getOptionValue(); optionValue.setValue(value); - // System.out.println("Set option " + desc.getName() + " to " + value); + // System.err.println("Set option " + desc.getName() + " to " + value); } } else { - System.out.println("Wrong value \"" + valueString + "\" for option " + optionName); + System.err.println("Wrong value \"" + valueString + "\" for option " + optionName); return false; } @@ -197,13 +197,13 @@ } protected static void printNoMatchMessage(String optionName) { - System.out.println("Could not find option " + optionName + " (use -G:+PrintFlags to see Graal options)"); + System.err.println("Could not find option " + optionName + " (use -G:+PrintFlags to see Graal options)"); List matches = fuzzyMatch(optionName); if (!matches.isEmpty()) { - System.out.println("Did you mean one of the following?"); + System.err.println("Did you mean one of the following?"); for (OptionDescriptor match : matches) { boolean isBoolean = match.getType() == boolean.class; - System.out.println(String.format(" %s%s%s", isBoolean ? "(+/-)" : "", match.getName(), isBoolean ? "" : "=")); + System.err.println(String.format(" %s%s%s", isBoolean ? "(+/-)" : "", match.getName(), isBoolean ? "" : "=")); } } } @@ -230,7 +230,7 @@ } String previous = System.setProperty(propertyName, "true"); if (previous != null) { - System.out.println("Overrode value \"" + previous + "\" of system property \"" + propertyName + "\" with \"true\""); + System.err.println("Overrode value \"" + previous + "\" of system property \"" + propertyName + "\" with \"true\""); } } catch (Exception e) { throw new GraalInternalError(e);