Hi,
thank you for your instruction about courtesy - yes, indeed, I have overseen this
totally because I was puzzled about the new issues Sonarqube suddenly
found in really old code.
Nevertheless - I think this suspender and belt programming for eventually buggy drivers is exaggerated. To avoid the masses of boilerplate code, try-with-resources and autocloseable was developed, normally one can trust the API doc. And closing the PreparedStatement follows in most cases immediately after the ResultSet is not used any more - how many milliseconds will you save closing it by hand? I am not talking about a Connection; closing it do not close the PreparedStement and do not close the ResultSet.
MeanwhiIe I did some more research on the Sonarqube bugtracker and in this group (initially I assumed a false issue ID), and it seems to be a known bug:
https://jira.sonarsource.com/browse/SONARJAVA-2060 Sincerely,
Jessica