nutzam/nutz — Issue #107: Nutz在JDK1.5下编译不过了
Author: pangwu86
Created: 2011-11-10 09:09:48+00:00
State: open

https://github.com/nutzam/nutz/blob/master/src/org/nutz/dao/impl/sql/pojo/PojoEachEntityCallback.java

第56行

throw new SQLException(e.getCause());

查看了SQLException的类，这个构造函数是1.6才加上去的

/**
* Constructs a SQLException object with a given
* cause.
* The SQLState is initialized
* to null and the vendor code is initialized to 0.
* The reason is initialized to null if
* cause==null or to cause.toString() if
* cause!=null.
*

* @param cause the underlying reason for this SQLException
* (which is saved for later retrieval by the getCause() method);
* may be null indicating the cause is non-existent or unknown.
* @since 1.6
*/
public SQLException(Throwable cause) {
super(cause);

if (!(this instanceof SQLWarning)) {
if (DriverManager.getLogWriter() != null) {
printStackTrace(DriverManager.getLogWriter());
}
}
}