| Summary: | SQLResultSet doesn't show methods from the type it extends (ScrollableDataSource) | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Joseph Vincens <jvincens> |
| Component: | EDT | Assignee: | Paul Harmon <pharmon> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | critical | ||
| Priority: | P3 | CC: | hoffmanp |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
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 |
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.