DWR

Generic types are lost in proxied beans

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: 4.0
  • Component/s: Spring
  • Description:
    Hide
    http://www.nabble.com/Conversion-breakage-(Was:-ScriptSession-hack)-tc20812142.html

    Solutions available in the thread above. Basically (uncommenting the proxied method check):

    Changing line 740 of DefaultRemoter to

    if (meth.getDeclaringClass().equals(obj.getClass()))
    {
        return meth.invoke(obj, params);
    }
    else
    {
        // A proxied object. Obtain the Method from the proxy
        Method m = obj.getClass().getMethod(meth.getName(), meth.getParameterTypes());
        return m.invoke(obj, params);
    }

    Show
    http://www.nabble.com/Conversion-breakage-(Was:-ScriptSession-hack)-tc20812142.html Solutions available in the thread above. Basically (uncommenting the proxied method check): Changing line 740 of DefaultRemoter to if (meth.getDeclaringClass().equals(obj.getClass())) {     return meth.invoke(obj, params); } else {     // A proxied object. Obtain the Method from the proxy     Method m = obj.getClass().getMethod(meth.getName(), meth.getParameterTypes());     return m.invoke(obj, params); }

Activity

There are no comments yet on this issue.

People

Dates

  • Created:
    28/Feb/08 9:59 AM
    Updated:
    01/Dec/09 7:00 PM