DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20535>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20535 Dynamically size arrays to allow array types in request scope DynaActionForm forms ------- Additional Comments From [EMAIL PROTECTED] 2003-06-09 19:51 ------- Revised patch (forgot a rather critical line... oops). Index: DynaActionForm.java =================================================================== RCS file: /home/cvspublic/jakarta-struts/src/share/org/apache/struts/action/DynaActionForm.java,v retrieving revision 1.8 diff -r1.8 DynaActionForm.java 456a457,465 > // Dynamically create array if it's not big enough > if (Array.getLength(prop) <= index) { > Object oar = Array.newInstance(prop.getClass().getComponentType(), index + 1) ; > for (int i = 0 ; i < Array.getLength(prop) ; i++) { > Array.set(oar, i, Array.get(prop, i)) ; > } > prop = oar ; > dynaValues.put(name, prop) ; > } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]