引数の説明
INVOKE文,メソッドの行内呼出. |
エラーの原因となったメソッド名. |
例
//"Very_Long_ ..._Name_class"は,240バイトを超えるクラス名です. //NetCOBOL for .NETでは,間接的に参照できる型名の長さは最大240バイトです.これを超える長さの型名は扱えません. public class Very_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Name_class { } public class C5734 { public Very_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Name_class M5734() { return new Very_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Long_Name_class(); } }
000001 IDENTIFICATION DIVISION. 000002 PROGRAM-ID. P5734. 000003 ENVIRONMENT DIVISION. 000004 CONFIGURATION SECTION. 000005 REPOSITORY. 000006 CLASS C5734 000007 CLASS SYSOBJ AS "System.Object". 000008 DATA DIVISION. 000009 WORKING-STORAGE SECTION. 000010 01 WOBRDT OBJECT REFERENCE C5734. 000011 01 WOBJ OBJECT REFERENCE SYSOBJ. 000012 PROCEDURE DIVISION. 000013 INVOKE C5734 "NEW" RETURNING WOBRDT. 000014 INVOKE WOBRDT "M5734" RETURNING WOBJ 000015 END PROGRAM P5734.
P5734.cob (14) : JMN5734I-S メソッドM5734にCOBOLプログラムから使用可能なインタフェースを持つものはありません.INVOKE文を無効とします.
詳細な説明
呼び出そうとしたメソッドにCOBOLプログラムから使用可能なインタフェースを持つオーバロードが1つも存在しなかった場合に出力されます.
見つかったメソッドのインタフェースが使用できない理由は他の診断メッセージにより示されます.