src/share/classes/com/sun/tools/javac/parser/JavacParser.java

changeset 1511
c7c41a044e7c
parent 1503
2d2b2be57c78
child 1513
cf84b07a82db
     1.1 --- a/src/share/classes/com/sun/tools/javac/parser/JavacParser.java	Mon Jan 21 20:13:56 2013 +0000
     1.2 +++ b/src/share/classes/com/sun/tools/javac/parser/JavacParser.java	Mon Jan 21 20:14:39 2013 +0000
     1.3 @@ -124,9 +124,7 @@
     1.4          this.allowLambda = source.allowLambda();
     1.5          this.allowMethodReferences = source.allowMethodReferences();
     1.6          this.allowDefaultMethods = source.allowDefaultMethods();
     1.7 -        this.allowIntersectionTypesInCast =
     1.8 -                source.allowIntersectionTypesInCast() &&
     1.9 -                fac.options.isSet("allowIntersectionTypes");
    1.10 +        this.allowIntersectionTypesInCast = source.allowIntersectionTypesInCast();
    1.11          this.keepDocComments = keepDocComments;
    1.12          docComments = newDocCommentTable(keepDocComments, fac);
    1.13          this.keepLineMap = keepLineMap;

mercurial