COBCH1487 STATIC class can only include static data and methods

The program contains a STATIC class that includes instance fields or instance methods. This is not allowed.

Resolution:

Remove instance fields and methods from the STATIC class.

Example:

In the following example of a static class definition, neither the Field1 string declaration nor the Inst1 method definition are static, and therefore must be removed from the static class definition.

       class-id a static.
       01 Field1 string.           *> Error
       01 Field2 string static.    *> Ok
       method-id Inst1.            *> Error
       end method.
       method-id Stat1 static.     *> Ok
       end method.
       end class.