Transparency
Nathan Bryant
nathan.bryant at linkshare.com
Tue Jul 13 14:08:20 PDT 2010
John, it's just array creation
class Foo<T> {
T[] arr = new T[SIZE]; // Can't write this without reification
}
class Foo<T> {
Object[] arr = new Object[SIZE];
void set(int i, T t) { arr[i] = t; } // Either causes autoboxing
unbeknownst to the sorry fool who wrote new Foo<int>, or becomes illegal
}
John Nilsson wrote:
> What exactly is it that requires reification to work?
BR,
John
More information about the lambda-dev
mailing list