COBCH1805 A STATIC class cannot have PROTECTED members

The program contains a static class that includes protected members. This is not allowed.

Resolution:

Remove the PROTECTED specification or otherwise adjust the code to eliminate the error; then recompile.

Example:

In the following example, the M1 method is protected.

       class-id A static.
       method-id M1 static protected.
       end method.
       end class.