解決方法:
コードを修正してから再コンパイルします。
例:
以下に、実行時エラーをスローし、コンパイル時エラーをスローする不適切なコーディング例を示します。
declare array1 as Type A occurs 2
set array1(1) to new A
set array1(2) to new A
sort array1 *> Compiles cleanly but gives error at run time
declare array2 as Type B occurs 2
set array2(1) to new B
set array2(2) to new B
sort array2 *> Gives compile time error
end program.
class-id A.
end class.
class-id B final.
end class.