Idea how to implement VT/VO compatibility in JVM

Stéphane Épardaud stef at
Thu Jan 22 13:57:21 UTC 2015

On 01/22/2015 02:56 PM, Vitaly Davidovich wrote:
> You don't need to box anything if the generic method takes Collection 
> <any T> - you just call it once you've obtained the type parameter.  
> If you've already boxed the value type you may as well call methods 
> taking Object.  The side benefit to this is you don't need to box the 
> items in the collection.
Well you will still need to box every item out of the collection because 
a `val Date` is not an Object unless boxed. And your traversal still 
works with Objects.

More information about the valhalla-dev mailing list