Community
Participate
Working Groups
Create a program with the following program Pgm1 type BasicProgram {} function main() rs1 SQLResultSet?; while (rs1.setNext()) end end end An error will be shown on setNext(). I debugged into the problem and found the following. in TypeBinding.getNullableInstance() nullableType = primGetNullableInstance();(line 134) If the type is an external type: ExternalTypeBinding.primGetNullableInstance() does ExternalTypeBinding nullable = new ExternalTypeBinding(this); ExternalTypeBinding the constructor (ExternalTypeBinding(ExternalTypeBinding old)) does not copy the extendedTypes to the newly created object. It does List extendedTypes = old.extendedTypes; so the extendedTypes are copied to an unused variable.
Thanks for debugging this, it was indeed a copy/paste error. The "List" should have been removed, so that the variable declared in ExternalTypeBinding
verified