-
20 Sep 2010 8:41 PM #1
[CLOSED] BeanModelReader has wrong generic type
[CLOSED] BeanModelReader has wrong generic type
BeanModelReader has the following signature :
however it will only ever contain BeanModel instances (or an empty list).Code:BeanModelReader implements DataReader<ListLoadResult<ModelData>>
It should have the signature : BeanModelReader implements DataReader<ListLoadResult<BeanModel>>
This means the following code is needed by the client :
ListLoadResult<BeanModel> dataListLoadResult = ((ListLoadResult<BeanModel>)(ListLoadResult)reader.read(null, result));
which is pretty messy.Last edited by andrew_l; 20 Sep 2010 at 8:49 PM. Reason: extra info
-
21 Sep 2010 1:03 AM #2
The generics on the dataloading api are overall wrong. Also we cannot change this in any minor version update.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED] 2.0.4 - NumberField documentation wrong - not generic
By bjwaski in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 18 Nov 2009, 8:00 AM -
[CLOSED] [2.0m] BaseTreeLoader nit work with BeanModelReader
By Webflash in forum Ext GWT: Bugs (2.x)Replies: 1Last Post: 12 May 2009, 2:28 AM -
[FIXED] [1.2.3] NumberField<Integer> error - the type is not NumberField generic
By The_Jackal in forum Ext GWT: Bugs (1.x)Replies: 5Last Post: 2 Apr 2009, 12:16 AM -
BeanModelReader::read() assumes all beans are of same concrete type
By NitrousDigital in forum Ext GWT: Bugs (1.x)Replies: 0Last Post: 23 Feb 2009, 9:41 AM -
[CLOSED] LoadListener class should be generic
By Cputerace in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 17 Feb 2009, 10:49 AM


Reply With Quote