Collection.toArray(IntFunction)

Paul Sandoz paul.sandoz at oracle.com
Fri May 31 01:08:01 PDT 2013


On May 30, 2013, at 6:16 PM, Martin Buchholz <martinrb at google.com> wrote:

> Cleaning up all of those unclear "runtime type" specs in the libraries and jls can be a bit of work.
> Probably could link to http://docs.oracle.com/javase/specs/jls/se7/html/jls-10.html#jls-10.5 and use the terminology from there
> 
> """
> If the type of the value being assigned is not assignment-compatible (§5.2) with the component type, an ArrayStoreException is thrown.
> """
> 
> but there will always be confusion about "compile-time type" and "runtime type".
> 
> """Variables have type; objects have class"""
> 

Thanks i have added what you say above to a comment of JDK-8015667.

Paul.


More information about the lambda-dev mailing list