Casting to a closure
Zdenek Tronicek
tronicek at fel.cvut.cz
Mon May 19 01:56:29 PDT 2008
Casting to a closure generates a warning:
Object o = { => Math.random() };
{ => double } p = ({ => double }) o;
TypeCasting.java:13: warning: [unchecked] unchecked cast
found : java.lang.Object
required: { => double}
{ => double } p = ({ => double }) o;
^
1 warning
Z.
--
Zdenek Tronicek
Department of Computer Science and Engineering
Prague tel: +420 2 2435 7410
http://cs.felk.cvut.cz/~tronicek
More information about the closures-dev
mailing list