Issue 31098  —   Compiling operation with Struct parameter crashes if its type is not specified

Status:   Solved in 10.2.01

Solution available in patch(es):      G101

Description:

 Summary:
 Uniface: Compiling an operation that is using a component variable or field of
 type Struct as parameter will cause a crash when using version 9.7.01. This
 happens if the type if the type of the parameter is not specified (as struct)

 Environment:
 +Uniface: Version 9.7.01
 +Operating System: OS independent
 +Database: DBMS independent

 Symptoms:
 Compiling an operation that is using a component variable
 or field of type Struct as parameter will cause a crash
 when using version 9.7.01.

 Consider the following code:

   operation oper1
     params
        $myStruct$ : IN    ; data type is Struct
     endparams

     ; code

   end;- oper1

 Compiling the above code will cause a crash in Phase 7 (Procs compilation).

Workaround:

 The mentioned crash can be prevented when explicitly specifying the data type
 of the parameter; e.g.
 
 operation oper1
   params
     struct $myStruct$ : IN ; data type: Struct
   endparams
 
   ; code
 
 end;- oper1

Notes: