Community
Participate
Working Groups
PlainDriverDataSource uses "new SQLException(Throwable)" which is not available in Java 5. If I update the bundle manifest to Java 6 (Bundle-RequiredExecutionEnvironment: JavaSE-1.6) then everything compiles fine.
Yes, indeed. Thanks. Changed to use SQLException(String,Throwable) method.
Mike, I'm not sure this constructor is available. In addition to a 1.6 JDK I also have a JDK 1.5.0_16 configured in my workspace. Eclipse will use this to compile. The only constructors I see are: java.sql.SQLException.SQLException() java.sql.SQLException.SQLException(String) java.sql.SQLException.SQLException(String, String) java.sql.SQLException.SQLException(String, String, int) Thus, it still doesn't compile against Java 5.
Strange. I thought I was looking at the Java SE 5 javadoc when I saw the (String,Throwable) method. Apparently I was looking at SE 6. Now that SE 7 is out I think a better answer is just to change the required EE to SE 6.
Changed dependency to SE 6.