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=19857>. 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=19857 Methods ConvertUtilsBean.convert could check for converters registered with base classes ------- Additional Comments From [EMAIL PROTECTED] 2003-06-16 11:57 ------- It seems to me that if your code is already smart enough to "know" how to convert to many specialized types, it should be comparitively minimal work to register the converter under each type. The additional inefficiency to always search up an entire hierarchy until Object.class is reached for EVERY converter lookup is a big performance hit compared to the inconvenience of having to register a converter some additional times, especially when the semantic is a bit misleading, in my opinion. My patch to bug 10319 includes an extension to ConvertUtilsBean that does some automatic Converter lookups such as e.g. looking for a constructor of the target class that take the source class as the only parameter. These automatic common conversions has reduced the number of Converter's we've had to write significantly. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]