7104905: Java SE build fails on call to CreateSymbols

Tue, 25 Oct 2011 19:18:32 -0700

author
jjh
date
Tue, 25 Oct 2011 19:18:32 -0700
changeset 1117
a1eaf78ababb
parent 1116
d830d28fc72e
child 1118
52df2131e294
child 1123
897b72b2751b

7104905: Java SE build fails on call to CreateSymbols
Reviewed-by: jjg

src/share/classes/com/sun/tools/javac/file/Locations.java file | annotate | diff | comparison | revisions
     1.1 --- a/src/share/classes/com/sun/tools/javac/file/Locations.java	Tue Oct 25 10:48:05 2011 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/file/Locations.java	Tue Oct 25 19:18:32 2011 -0700
     1.3 @@ -327,7 +327,9 @@
     1.4           */
     1.5          protected LocationHandler(Location location, OptionName... options) {
     1.6              this.location = location;
     1.7 -            this.options = EnumSet.copyOf(Arrays.asList(options));
     1.8 +            this.options = options.length == 0 ?
     1.9 +                EnumSet.noneOf(OptionName.class):
    1.10 +                EnumSet.copyOf(Arrays.asList(options));
    1.11          }
    1.12  
    1.13          // TODO: TEMPORARY, while Options still used for command line options

mercurial