COBCH1490 Cannot redefine equality and inequality operators for string type

The program specifies an extension operator for an = operator on a string or <> operators on a string. This is not allowed because these operators are provided as built-in extensions in JVM COBOL.

Resolution:

Modify the code to eliminate the extension operator; then recompile.

Example:

In the following example, the operator-id extension operator definition is not allowed.

       class-id a static.
       operator-id = extension (s1 as string, s2 as string) returning ret as condition-value.
           set ret to s1 = s2
       end operator.