Previous Topic: Java and Oracle varchar null supportNext Topic: Windows Application Server Environment Settings


Java Source Code When Upgrading from CA Plex r5.5

The Java source code you entered into source code objects in your model may need to be modified. This is because of the changes in the structure of the Java classes created by the generator at CA Plex r5.5 SP1. The source code objects supplied in CA’s pattern libraries (such as the JAVAAPI library) are already modified. Re-extract from the shipped JAVAAPI library before regenerating and compiling with CA Plex r7.1.

Problems in Java source code result in an unexpected type error at compile time. For example:

C:\GENJAVA\MyFunction_ObFnc.java:line number: unexpected type

required: variable
found   : value

To fix such problems use the assign method instead of the = operator.

Prior to r5.5 SP1, you could use the operator = to assign the return value of a method to an output parameter of your source code API. For example:

&(4:) = anyMethod(&(1:), &(2:), &(3:));

From r5.5 SP1 onwards, the code in the previous example needs to be modified to include the assign method instead of the = operator, as follows:

&(4:).assign(anyMethod(&(1:), &(2:), &(3:)));