Duplicate :
|
|
Relates :
|
|
Relates :
|
There is no direct way to force a class to be initialized. Now that class literals do not do that, it would be extremely helpful for there to be a direct way to force the initialization. Please add a method public Class<T> Class.initialize(); to force the class to be initialized. That would allow the idiom X.class.initialize() to be used as a class literal for an initialized class.
|