19 Jun 2012 06:17
Abstract methods in DelegatingResultSet
Olivier Lefevre <lefevrol <at> yahoo.com>
2012-06-19 04:17:44 GMT
2012-06-19 04:17:44 GMT
I just noticed that the DelegatingResultSet object handed by Tomcat sports a slew of abstract methods even though the class itself is not declared abstract. In Tomcat 7.0.x there are only 2 such methods: the two getObject methods taking a Class as second argument, which are also the only two methods marked as 1.7 level in the Javadocs, but for Tomcat 6.0.x there are lots of them, including the isClosed method, all of them marked 1.6 level AFAICT. This seems very wrong, esp. the fact the DelegatingResultSet class is not marked as abstract. I have attached a test servlet that demonstrates the behaviour: install it and call http://localhost:8080/test1/get (or whatever is your Tomcat server location). I tested against 6.0.30 and 7.0.27. Can somebody comment? Thanks, -- O.L.
package test1; import java.io.IOException; import java.io.PrintWriter; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.sql.*; import javax.naming.*; import javax.servlet.*; import javax.servlet.http.*;(Continue reading)
RSS Feed