changeset 1149:a1eaf78ababb

7104905: Java SE build fails on call to CreateSymbols Reviewed-by: jjg
author jjh
date Tue, 25 Oct 2011 19:18:32 -0700
parents d830d28fc72e
children 52df2131e294 897b72b2751b
files src/share/classes/com/sun/tools/javac/file/Locations.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/file/Locations.java	Tue Oct 25 10:48:05 2011 -0700
+++ b/src/share/classes/com/sun/tools/javac/file/Locations.java	Tue Oct 25 19:18:32 2011 -0700
@@ -327,7 +327,9 @@
          */
         protected LocationHandler(Location location, OptionName... options) {
             this.location = location;
-            this.options = EnumSet.copyOf(Arrays.asList(options));
+            this.options = options.length == 0 ?
+                EnumSet.noneOf(OptionName.class):
+                EnumSet.copyOf(Arrays.asList(options));
         }
 
         // TODO: TEMPORARY, while Options still used for command line options