craigmcc 2002/06/15 22:39:17 Modified: src/share/org/apache/struts/util RequestUtils.java Log: Fix the previous patch to look up the correct application class for the form bean's specified type, and use isAssignableFrom() as a better test. Revision Changes Path 1.37 +6 -5 jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java Index: RequestUtils.java =================================================================== RCS file: /home/cvs/jakarta-struts/src/share/org/apache/struts/util/RequestUtils.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- RequestUtils.java 16 Jun 2002 05:32:50 -0000 1.36 +++ RequestUtils.java 16 Jun 2002 05:39:17 -0000 1.37 @@ -583,7 +583,8 @@ } } else { try { - if (Class.forName(config.getType()).isInstance(instance)) { + Class configClass = applicationClass(config.getType()); + if (configClass.isAssignableFrom(instance.getClass())) { if (LOG.isDebugEnabled()) { LOG.debug (" Recycling existing ActionForm instance " +
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>