Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nutz在JDK1.5下编译不过了 #107

Closed
pangwu86 opened this issue Nov 10, 2011 · 2 comments
Closed

Nutz在JDK1.5下编译不过了 #107

pangwu86 opened this issue Nov 10, 2011 · 2 comments
Assignees
Labels
Milestone

Comments

@pangwu86
Copy link
Member

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 <code>SQLException</code> object with a given
 * <code>cause</code>.
 * The <code>SQLState</code> is initialized
 * to <code>null</code> and the vendor code is initialized to 0. 
 * The <code>reason</code>  is initialized to <code>null</code> if 
 * <code>cause==null</code> or to <code>cause.toString()</code> if 
 * <code>cause!=null</code>.
 * <p>
 * @param cause the underlying reason for this <code>SQLException</code> 
 * (which is saved for later retrieval by the <code>getCause()</code> 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());
    }
}
}
@wendal
Copy link
Member

wendal commented Nov 10, 2011

换一个呗

wendal added a commit that referenced this issue Nov 12, 2011
@wendal
Copy link
Member

wendal commented Nov 12, 2011

Fixed

@wendal wendal closed this as completed Nov 12, 2011
@ghost ghost assigned wendal Nov 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants