Olivier Lefevre | 19 Jun 2012 06:17
Picon
Favicon

Abstract methods in DelegatingResultSet

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)

Olivier Lefevre | 19 Jun 2012 07:05
Picon
Favicon

Re: Abstract methods in DelegatingResultSet

Please ignore! I sent it to this group by mistake: the log4j group entry
is just above the tomcat group in my newsreader and I did not realized I
had clicked on the wrong one.

Thanks,

-- O.L.

Gmane