Time to time, i heard that sentence
"array of generics a inherently unsafe"
or a variation.
That is not true and i would like to explain why
and even better propose a way to improve the
user experience.
Array of generics ?
First, there are two kinds of "generics",
type variable and parameterized type,
and they behave differently.
An example of array of type variable...
Just for fun, this morning, i've patched the java compiler
to be able to generate classes that use
invokedynamic instead of invokevirtual/invokeinterface when invoking
a method. following the JSR292 EDR
The patch is based on the source of the langtools repository of
the hotspot project, so to apply the patch, first clone the
repository
hg clone http://hg.openjdk.java.net/jdk7/...