Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Parameterized types syntax error in Java function



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.


  • 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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us