hg: tiered-attrib/dev/langtools: eliminating the method fastCheck from Attr
vicente.romero at oracle.com
vicente.romero at oracle.com
Tue Jul 7 23:19:59 UTC 2015
Changeset: 96d563a85ec8
Author: vromero
Date: 2015-07-07 16:18 -0700
URL: http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/96d563a85ec8
eliminating the method fastCheck from Attr
In addition to the elimination of the fastCheck routine and the code paths leading to it, this patch
is also modifying the attribution of explicit lambdas that are stuck. During the target type phase, if
a explicit lambda is stuck and the target type is free, we only need to generate return constraints against
that target. This can be done this way because explicit lambdas are attributed at creation time regardless
of theirs stuck-ness. If the target is not free then one option is to do nothing or to attribute the body
of the stuck lambda looking for errors. Here we are following the second option, but the first option should
also be applicable.
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
+ test/tools/javac/tieredAttr/misc/AlwaysAttributeParametersTest.java
More information about the tiered-attrib-dev
mailing list