4 ms·
Is that still being developed? Has some recent commits, but parts of the manual are clearly somewhat out-of-date; for instance, in 5.3.1 (Defining Generics) the
by al2o3cr 9y ago
Is that still being developed? Has some recent commits, but parts of the manual are clearly somewhat out-of-date; for instance, in 5.3.1 (Defining Generics) there's a "try doing that in Java!" that's trivially accomplishable with Java generics.
- mempko 9y agoSince when can you create new objects of a generic type T in java using "new"? class MyGeneric<GenericType> { public GenericType stupidJava() { return new GenericType(); } } You still can't do that with java. In order to create a new instance from a generic type you must use the reflection mechanism. Or alternatively do what Java people did for ages, factory classes. Trygve allows you to use "new" keyword. So no, the manual is correct.