hg: tiered-attrib/dev/langtools: 2 new changesets
vicente.romero at oracle.com
vicente.romero at oracle.com
Tue Apr 7 23:46:26 UTC 2015
Changeset: 1bc3a6fc0f30
Author: vromero
Date: 2015-04-07 16:43 -0700
URL: http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/1bc3a6fc0f30
refactoring the notification approach in type inference
inference contexts now maintain a list of observer inference contexts. Now when the current inference context is instantiated
this event if notified to the observer inference contexts. The difference with the previous approach is that now this event
don't imply that the free type listeners have to be called immediately. Instead different priorities have been defined
and every listener should specify the priority of the related callback. During the instantiation process, listeners can be
invoked depending on theirs priority. This approach is more complex but at the same time provides a lot more flexibility as
now it's possible to iterate through the waiting listeners and make sure that the expected order of calls is met.
! 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/Resolve.java
Changeset: 8bb721d6b93c
Author: vromero
Date: 2015-04-07 16:45 -0700
URL: http://hg.openjdk.java.net/tiered-attrib/dev/langtools/rev/8bb721d6b93c
javac is reporting a misleading error depending on the order of evaluation of setFunctionlInfo for lambda
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Infer.java
More information about the tiered-attrib-dev
mailing list