hg: jdk9/dev/langtools: 2 new changesets

jan.lahoda at oracle.com jan.lahoda at oracle.com
Mon Sep 8 08:52:31 UTC 2014


Changeset: b545a2b1039d
Author:    jlahoda
Date:      2014-09-08 10:48 +0200
URL:       http://hg.openjdk.java.net/jdk9/dev/langtools/rev/b545a2b1039d

8056014: Type inference may be skipped for a complex receiver generic method in a parameter position
Summary: When checking if deferred attribution is needed for a chain of methods, stop on any method that returns any type variable, as the rest of analysis cannot use the correct type.
Reviewed-by: mcimadamore, vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
+ test/tools/javac/lambda/T8056014.java

Changeset: d7e615e0115c
Author:    jlahoda
Date:      2014-09-08 10:50 +0200
URL:       http://hg.openjdk.java.net/jdk9/dev/langtools/rev/d7e615e0115c

8056984: Exception in compiler: java.lang.AssertionError: isSubClass T
Summary: Must use type variable's captured bound as a method receiver, instead of the type variable itself, while checking if deferred attribution is needed.
Reviewed-by: mcimadamore, vromero

! src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
+ test/tools/javac/lambda/T8056984.java



More information about the jdk9-dev-changes mailing list