Support Article
Parameterized types syntax error in Java function
SA-40141
Summary
Unable to save a function to an existing library. The function includes the below line of Java code:
List<ModelDetails> details = new ArrayList();
Error Messages
Syntax error, annotations are only available if source level is 1.5
Steps to Reproduce
Create a function with Java 1.5 features, such as generics and parameterized types.Root Cause
Java 1.5 features are not supported in Pega 6.3 SP1 libraries.
Resolution
- Upgrade to Pega 7.1.8.
- Alternatively, use an external JAR file with the Java 1.5 code and reference it in a Java activity step.
Published August 16, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.