Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360089 - SQLResultSet doesn't show methods from the type it extends (ScrollableDataSource)
Summary: SQLResultSet doesn't show methods from the type it extends (ScrollableDataSou...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Paul Harmon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 08:15 EDT by Joseph Vincens CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Vincens CLA 2011-10-06 08:15:59 EDT
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.
Comment 1 Paul Harmon CLA 2011-10-06 13:34:11 EDT
Thanks for debugging this, it was indeed a copy/paste error. The "List" should have been removed, so that the variable declared in ExternalTypeBinding
Comment 2 Joseph Vincens CLA 2011-10-24 16:10:13 EDT
verified