You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@RuntimeRetention
@ReflectionStrategy(keepEverything=true)
public class ParentBean {
public List<ChildBean> children;
}
and
@RuntimeRetention
@ReflectionStrategy(keepEverything=true)
public class ChildBean {}
Doing:
List<ChildBean> children = new LinkedList<ChildBean>();
ParentBean parent = new ParentBean();
GwtReflect.fieldSet(Parent.class, "children", parent, children);
Will result into this error:
[ERROR] Alert: Cannot assign object [] of type class java.util.LinkedList to field public java.util.List com.mycompany.ParentBean.children
The text was updated successfully, but these errors were encountered:
kerbymart
changed the title
Cannot cas
Cannot assign object [] of type class java.util.LinkedList to field public java.util.List
Nov 17, 2017
I looked, and the fieldGet/fieldSet methods were not hooked up correctly for flyweight usage, so they currently still require calling magicClass to fill in runtime lookup maps.
Given that we have
and
Doing:
Will result into this error:
The text was updated successfully, but these errors were encountered: