7104905: Java SE build fails on call to CreateSymbols
authorjjh
Tue, 25 Oct 2011 19:18:32 -0700
changeset 10819 e1a8df45d8b0
parent 10818 e95eb04c68cc
child 10820 08597fb7c902
child 10946 dff783bb105d
7104905: Java SE build fails on call to CreateSymbols Reviewed-by: jjg
langtools/src/share/classes/com/sun/tools/javac/file/Locations.java
--- a/langtools/src/share/classes/com/sun/tools/javac/file/Locations.java	Tue Oct 25 10:48:05 2011 -0700
+++ b/langtools/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