I've just downloaded the new Java SE 6 package and was going through the process of rebuilding various libraries and applications to see if anything broke. Looks like something did:
This is (an abbrieviated form of) code which compiled fine under Java 5. The compiler is complaining that there's no such constructor for SQLException:
Is this a known problem?
Code:
import java.sql.SQLException;
try {
...
} catch (SQLException ex) {
throw new SQLException("message", ex);
}
Code:
[javac] filename.java: cannot find symbol
[javac] symbol : constructor SQLException(java.lang.String,java.sql.SQLException)
[javac] location: class java.sql.SQLException
[javac] throw new SQLException("Unable to retrieve dates", e);