Not able to instantiate a class with generic type
In PRPC 6.3 SP1, a utility function with Java language features from Java 1.5 (or higher) does not compile, and save.
"Syntax error, parameterized types are only available if source level is 1.5"
Steps to Reproduce
Attempt to save the following Java code in an activity or function:
java.util.ArrayList<String> list = new java.util.ArrayList<String>();
The root cause of this problem is a defect in Pegasystems’ code/rules. PRPC 6.x and earlier versions use Java 1.4 compiler and do not support methods instantiated in Java 1.5 version.
This issue is resolved through the following local-change:
1.Add any Java 1.5 code to classes external to the PRPC environment.
2.Iimport the external classes/jars into PRPC.
3.Reference the external classes from a Java activity step.
0% found this useful