hg: tiered-attrib/dev/langtools: InferenceContext should live in a separate source file
vicente.romero at oracle.com
vicente.romero at oracle.com
Thu May 7 16:31:41 UTC 2015
Changeset: 84bb5c4f26f2
Author: vromero
Date: 2015-05-06 23:12 -0700
URL: http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/84bb5c4f26f2
InferenceContext should live in a separate source file
the class DeferredAttrContext has been removed and its fields and methods have been moved
to the InferenceContext class, which now lives in a brand new source file.
Inference contexts now are chained using a parent field which links an inner context to the
outer context. This relation is not right now strict, now if an inner context needs to share
its information up to an outer inference context then it is considered as its parent. In other
case they are deemed independent. A stricter approach should consider the outer context always
as the parent of the inner context, regardless of the amount of information shared. So far the
current approach is convenient as having or not a parent implies that the inner context shares
information with the outer context, but this can change in the future.
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Check.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java
+ src/jdk.compiler/share/classes/com/sun/tools/javac/comp/InferenceContext.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Resolve.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/TieredAttrUtils.java
More information about the tiered-attrib-dev
mailing list