Call Hierarchy Question [message #1809245] |
Fri, 12 July 2019 09:26  |
Eclipse User |
|
|
|
Hello,
I am trying to find all the calls to close() method from java.sql.Connection
For that I am using the Call Hierarchy feature but for some reason it seems is finding all close() calls no matter what is the Class.
In the image attached you can see that it is showing a close() on a ResultSet.
Any explanation? Am I doing something wrong?
Thanks in advance,
Rafa
|
|
|
Re: Call Hierarchy Question [message #1809321 is a reply to message #1809245] |
Sat, 13 July 2019 06:11   |
Eclipse User |
|
|
|
Yes, that's just a limitation. That method overrides java.lang.AutoCloseable.close() so any call anywhere on an AutoCloseable might well be actually a call to a Connection. I don't know if it's possible for a class to implement both ResultSet and Connection (which probably makes no sense to actually do), but you see the point...
|
|
|
|
Powered by
FUDForum. Page generated in 0.10381 seconds