Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Call Hierarchy Question(Call Hierarchy is not working as I would expect)
Call Hierarchy Question [message #1809245] Fri, 12 July 2019 09:26 Go to next message
Rafa De Miguel is currently offline Rafa De MiguelFriend
Messages: 2
Registered: July 2019
Junior Member
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30628
Registered: July 2009
Senior Member
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...
Re: Call Hierarchy Question [message #1809389 is a reply to message #1809321] Mon, 15 July 2019 10:59 Go to previous message
Rafa De Miguel is currently offline Rafa De MiguelFriend
Messages: 2
Registered: July 2019
Junior Member
OK, understood, thank you very much for the clarification
Previous Topic: launch a Jenkins slave running off a docker image that runs on my
Next Topic: Cannot Install Many Software
Goto Forum:
  


Current Time: Wed Nov 13 17:06:58 GMT 2019

Powered by FUDForum. Page generated in 0.02998 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top