git-svn-id: http://code.alibabatech.com/svn/druid/trunk@610 b9813039-fb51-4c41-a8b9-e21c2acb5095

This commit is contained in:
wenshao
2011-09-02 19:00:58 +00:00
parent 2a9ecefb09
commit 8eb19ce568
@@ -131,6 +131,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
if (maxActive <= 0) {
throw new IllegalArgumentException("illegal maxActive " + maxActive);
}
if (maxActive <= minIdle) {
throw new IllegalArgumentException("illegal maxActive " + maxActive);
}
if (maxIdle <= 0 || maxIdle < minIdle) {
throw new IllegalArgumentException("illegal maxPoolSize");