--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Options.java Wed Aug 10 13:52:02 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Options.java Wed Aug 10 15:47:46 2016 -0700
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2001, 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 2016, 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
@@ -71,7 +71,7 @@
* Get the value for an option.
*/
public String get(Option option) {
- return values.get(option.text);
+ return values.get(option.primaryName);
}
/**
@@ -101,14 +101,14 @@
* Check if the value for an option has been set.
*/
public boolean isSet(Option option) {
- return (values.get(option.text) != null);
+ return (values.get(option.primaryName) != null);
}
/**
* Check if the value for a choice option has been set to a specific value.
*/
public boolean isSet(Option option, String value) {
- return (values.get(option.text + value) != null);
+ return (values.get(option.primaryName + value) != null);
}
/**
@@ -122,14 +122,14 @@
* Check if the value for an option has not been set.
*/
public boolean isUnset(Option option) {
- return (values.get(option.text) == null);
+ return (values.get(option.primaryName) == null);
}
/**
* Check if the value for a choice option has not been set to a specific value.
*/
public boolean isUnset(Option option, String value) {
- return (values.get(option.text + value) == null);
+ return (values.get(option.primaryName + value) == null);
}
public void put(String name, String value) {
@@ -137,7 +137,7 @@
}
public void put(Option option, String value) {
- values.put(option.text, value);
+ values.put(option.primaryName, value);
}
public void putAll(Options options) {