Flex forced type conversion error, flex forced type
1. Error description
TypeError: Error #1034: forced conversion type failed: the HoleDetailInnerClass0 @ c2cccf1 cannot be converted to mx. controls. listClasses. IListItemRenderer. At mx. controls. dataGridClasses: DataGridColumn/http://www.adobe.com/2006/flex/mx/internal::getMeasuringRenderer () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ controls \ dataGridClasses \ DataGridColumn. as: 1892] at mx. controls: DataGrid/commitProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ controls \ DataGrid. as: 1925] at mx. core: UIComponent/validateProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent. as: 7772] at mx. managers: LayoutManager/validateProperties () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 572] at mx. managers: LayoutManager/doPhasedInstantiation () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 700] at mx. managers: LayoutManager/doPhasedInstantiationCallback () [E: \ dev \ 4.0.0 \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager. as: 1072]
2. Error cause
3. Solution
Flex interacts with java. Recently, the force type conversion error can be solved by 20 points.
The problem is unclear. Can you make it clear?
Flex forced type conversion: ArrayList ArrayCollection
We recommend that you change the returned value of ArrayList to ArrayList <Map <String, String> to convert it. The first string is fieldName, and the second is fieldValue.