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

This commit is contained in:
wenshao
2011-09-02 19:22:35 +00:00
parent 5c75b66330
commit 3f00baeb76
@@ -126,6 +126,10 @@ public class DruidDataSource extends DruidAbstractDataSource implements DruidDat
if (maxIdle <= 0 || maxIdle < minIdle) {
throw new IllegalArgumentException("illegal maxPoolSize");
}
if (getInitialSize() > maxActive) {
throw new IllegalArgumentException("illegal initialSize");
}
if (this.driverClass != null) {
this.driverClass = driverClass.trim();