mdiggory 2004/06/01 16:40:29 Modified: math/src/test/org/apache/commons/math/stat/data CertifiedDataAbstractTest.java Log: Exception is getting exposed where it wasn't shown before. Revision Changes Path 1.4 +4 -12 jakarta-commons/math/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java Index: CertifiedDataAbstractTest.java =================================================================== RCS file: /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/stat/data/CertifiedDataAbstractTest.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- CertifiedDataAbstractTest.java 1 Jun 2004 22:15:51 -0000 1.3 +++ CertifiedDataAbstractTest.java 1 Jun 2004 23:40:29 -0000 1.4 @@ -134,19 +134,11 @@ } - protected Object getProperty(Object bean, String name){ - + protected Object getProperty(Object bean, String name) throws Exception{ // Get the value of prop String prop = "get" + name.substring(0,1).toUpperCase() + name.substring(1); - Expression expr = new Expression(bean, prop, new Object[0]); - try { - expr.execute(); - return expr.getValue(); - } catch (Exception e) { - e.printStackTrace(); - } - - return null; + expr.execute(); + return expr.getValue(); } }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]