hg: tiered-attrib/dev/langtools: refactorings and new code related to attribution of method invocations

vicente.romero at oracle.com vicente.romero at oracle.com
Wed Jul 15 22:02:26 UTC 2015


Changeset: 59eb31dc2e22
Author:    vromero
Date:      2015-07-15 15:01 -0700
URL:       http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/59eb31dc2e22

refactorings and new code related to attribution of method invocations
this is a big patch that includes some refactorings plus new code. In the refactoring
side the code in Attr.visitApply() has been mostly moved to StructuralApplyType constructor.
In the new code side, once this change was done, some issues and bugs appeared that needed
to be fixed. Also some simplifications were applied, it was clear that visitApply and
visitSelect were now creating a structural type just to pass information up to the
StructuralApplyType constructor, basically the inference context if any. So instead of
creating a structural type just for that, the already existing ResolutionData class was
modified to hold an inference context too. This implied changes to Infer which was creating
the structural type, this was odd. Now the design has been simplified, StructuralApplyTypes are
created only at one point, etc.

! 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/StructuralAttr.java



More information about the tiered-attrib-dev mailing list