Using Java Generics w/ PeopleCode
We're about to upgrade to the latest PeopleTools (8.57?)
One of the major innovations in Java since 1.7 is the heavy implementation of Generics, which uses syntax more like this
BaseType <Type> obj = new BaseType <Type>()
So you might do
Hashtable<String, String> hashtable = new Hashtable<String, String>();
In the past, pre-generics, you might just do something like
String X = new String();
As of 8.53, it doesn't seem like PeopleCode understands generics - there's no easy way to instantiate one with CreateJavaObject. You can work around it with reflection (very complicated) or writing your own class to wrap the target class.
Has this changed by 8.57? Or, is there a better way to do it?