Migrating methods in Collections

Doug Lea dl at cs.oswego.edu
Sun Dec 20 22:05:32 UTC 2015

On 12/20/2015 12:40 PM, Ron Pressler wrote:

> 1. We can simply not specialize the signatures of public collection methods
> (say, if [T] is the boxed-type of T, the signature of Map<K,V>.get(Object) will
> be [V] get(Object)).

One would think that the boxing of T would be an implementation of
Optional<T>, which would be incompatibly different as a signature.

Although I'm not exactly sure how this would work given the compromises
defining Optional necessary to get it into jdk8.


More information about the valhalla-spec-experts mailing list