hg: closures/closures/langtools: 2 new changesets

neal at gafter.com neal at gafter.com
Tue Jul 8 00:01:57 PDT 2008

Changeset: e7a8bdf18063
Author:    gafter
Date:      2008-07-07 00:51 -0700
URL:       http://hg.openjdk.java.net/closures/closures/langtools/rev/e7a8bdf18063

1. The closure conversion from an unrestricted closure to a
restricted type doesn't exist.  It used to exist as a
conversion but generate an error, which had unfortunate
effects on overload resolution.
2. Eta expressions produce restricted closures.

! src/share/classes/com/sun/tools/javac/code/Type.java
! src/share/classes/com/sun/tools/javac/code/Types.java
+ test/tools/javac/closures/Mahieu19.java

Changeset: ba0c588680a8
Author:    gafter
Date:      2008-07-07 23:45 -0700
URL:       http://hg.openjdk.java.net/closures/closures/langtools/rev/ba0c588680a8

Resolved some cases that would cause a failure to parse or a
crash in semantic processing of eta expansion expressions in
which the qualifying type has a wildcard argument.

! src/share/classes/com/sun/tools/javac/comp/DeClosure.java
! src/share/classes/com/sun/tools/javac/parser/Parser.java
! test/tools/javac/closures/ParseEta.java

More information about the closures-dev mailing list