Kbase P131665: 4GL/ABL: Runtime crashes compiling class having a method named recid.
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  19/05/2008 |
|
Status: Unverified
FACT(s) (Environment):
All Supported Operating Systems
OpenEdge 10.1C
SYMPTOM(s):
4GL/ABL: Runtime crashes compiling class having a method named recid.
Syntax checking or compiling a class file, having a method named recid, crashes the ABL session and generates a stack trace file.
Syntax checking in the Procedure Editor or compiling the following class file using the ABL statement: COMPILE crashme.cls SAVE. crashes the session and generates a stack trace file:
CLASS crashme:
METHOD STATIC RECID recid ( INPUT c AS CHARACTER ):
DEFINE VARIABLE tmpResult AS RECID NO-UNDO.
tmpResult = recid ( c ).
RETURN tmpResult.
END METHOD /* recid */.
END CLASS /*crashme */
CAUSE:
This is a known issue
FIX:
OpenEdge Development is aware of this issue. As a workaround, rename the method to something other than the keyword recid. For example:
CLASS crashme:
METHOD STATIC RECID myrecid ( INPUT c AS CHARACTER ):
DEFINE VARIABLE tmpResult AS RECID NO-UNDO.
tmpResult = myrecid ( c ).
RETURN tmpResult.
END METHOD /* myrecid */.
END CLASS /*crashme */