hg: tiered-attrib/dev/langtools: avoid checking the method reference whenever is possible to reuse existing information

vicente.romero at oracle.com vicente.romero at oracle.com
Mon Jun 15 23:44:23 UTC 2015


Changeset: 267d12090a9f
Author:    vromero
Date:      2015-06-15 16:43 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/267d12090a9f

avoid checking the method reference whenever is possible to reuse existing information
the call to Resolve.resolveMemberReference() made during the attribution of method references
provides, in most cases, all the information that will be recalculated later during the call to
checkId() which will check the method reference. This patch is trying to reuse that information
for those cases for which it's already there, thus saving unnecessary computations.

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java



More information about the tiered-attrib-dev mailing list