craigmcc 02/03/30 15:58:45 Modified: beanutils/src/java/org/apache/commons/beanutils BeanUtils.java Log: Fix 7333 by making BeanUtils explicitly depend on FastHashMap (from the commons-collections.jar file) as ConvertUtils and PropertyUtils. This means you will get the ClassNotFoundException immediately on your first reference to the BeanUtils class, instead of it potentially getting masked or ignored by BeanUtils methods that call ConvertUtils or PropertyUtils. PR: 7333 Submitted by: Brian.Ewins at btinternet.com Revision Changes Path 1.16 +15 -4 jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java Index: BeanUtils.java =================================================================== RCS file: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- BeanUtils.java 11 Mar 2002 04:49:53 -0000 1.15 +++ BeanUtils.java 30 Mar 2002 23:58:45 -0000 1.16 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v 1.15 2002/03/11 04:49:53 craigmcc Exp $ - * $Revision: 1.15 $ - * $Date: 2002/03/11 04:49:53 $ + * $Header: /home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v 1.16 2002/03/30 23:58:45 craigmcc Exp $ + * $Revision: 1.16 $ + * $Date: 2002/03/30 23:58:45 $ * * ==================================================================== * @@ -74,6 +74,7 @@ import java.util.Iterator; import java.util.Map; +import org.apache.commons.collections.FastHashMap; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; @@ -86,13 +87,23 @@ * @author Chris Audley * @author Rey François * @author Gregor Raıman - * @version $Revision: 1.15 $ $Date: 2002/03/11 04:49:53 $ + * @version $Revision: 1.16 $ $Date: 2002/03/30 23:58:45 $ */ public class BeanUtils { // ------------------------------------------------------ Private Variables + + + /** + * Dummy collection from the Commons Collections API, to force a + * ClassNotFoundException if commons-collections.jar is not present in the + * runtime classpath, and this class is the first one referenced. + * Otherwise, the ClassNotFoundException thrown by ConvertUtils or + * PropertyUtils can get masked. + */ + private static FastHashMap dummy = new FastHashMap(); /** * All logging goes through this logger
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>