Author: fhanik Date: Tue Mar 27 14:59:03 2012 New Revision: 1305859 URL: http://svn.apache.org/viewvc?rev=1305859&view=rev Log: Account for known missing properties
Modified: tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/DefaultTestCase.java Modified: tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/DefaultTestCase.java URL: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/DefaultTestCase.java?rev=1305859&r1=1305858&r2=1305859&view=diff ============================================================================== --- tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/DefaultTestCase.java (original) +++ tomcat/trunk/modules/jdbc-pool/src/test/java/org/apache/tomcat/jdbc/test/DefaultTestCase.java Tue Mar 27 14:59:03 2012 @@ -87,9 +87,16 @@ public class DefaultTestCase extends Tes get = PoolProperties.class.getMethod(name, new Class[0]); }catch (NoSuchMethodException x) { try { - get = PoolProperties.class.getMethod(bname, new Class[0]); + get = PoolProperties.class.getMethod(bname, new Class[0]); }catch (NoSuchMethodException x2) { - System.err.println(x2.getMessage()); + String msg = x2.getMessage(); + if (msg.indexOf("isPoolPreparedStatements")>=0) { + //noop - ignore known missing properties + } else if (msg.indexOf("isMaxOpenPreparedStatements")>=0) { + //noop - ignore known missing properties + } else { + System.err.println("Missing property:"+x2.getMessage()); + } } } if (get!=null) { --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org