yoavs 2004/09/03 11:03:56 Modified: catalina/src/share/org/apache/naming/factory BeanFactory.java webapps/docs changelog.xml Log: Bugzilla 31052. Revision Changes Path 1.4 +12 -4 jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/BeanFactory.java Index: BeanFactory.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/factory/BeanFactory.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- BeanFactory.java 26 Jul 2004 15:39:13 -0000 1.3 +++ BeanFactory.java 3 Sep 2004 18:03:56 -0000 1.4 @@ -220,13 +220,21 @@ return bean; } catch (java.beans.IntrospectionException ie) { - throw new NamingException(ie.getMessage()); + NamingException ne = new NamingException(ie.getMessage()); + ne.setRootCause(ie); + throw ne; } catch (java.lang.IllegalAccessException iae) { - throw new NamingException(iae.getMessage()); + NamingException ne = new NamingException(iae.getMessage()); + ne.setRootCause(iae); + throw ne; } catch (java.lang.InstantiationException ie2) { - throw new NamingException(ie2.getMessage()); + NamingException ne = new NamingException(ie2.getMessage()); + ne.setRootCause(ie2); + throw ne; } catch (java.lang.reflect.InvocationTargetException ite) { - throw new NamingException(ite.getMessage()); + NamingException ne = new NamingException(ite.getMessage()); + ne.setRootCause(ite); + throw ne; } } else { 1.100 +3 -0 jakarta-tomcat-catalina/webapps/docs/changelog.xml Index: changelog.xml =================================================================== RCS file: /home/cvs/jakarta-tomcat-catalina/webapps/docs/changelog.xml,v retrieving revision 1.99 retrieving revision 1.100 diff -u -r1.99 -r1.100 --- changelog.xml 2 Sep 2004 19:13:38 -0000 1.99 +++ changelog.xml 3 Sep 2004 18:03:56 -0000 1.100 @@ -59,6 +59,9 @@ <fix> Externalize constant strings defining the location of deployment related resources. (remm) </fix> + <fix> + <bug>31052</bug>: BeanFactory swallows root cause of exception. (yoavs) + </fix> </changelog> </subsection>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]