commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William R. Speirs (Closed) (JIRA)" <>
Subject [jira] [Closed] (DBUTILS-64) FindBugs reportrs "bad practice" in QueryLoader
Date Sat, 26 Nov 2011 18:37:40 GMT


William R. Speirs closed DBUTILS-64.

    Resolution: Cannot Reproduce

FindBugs no longer reports this as an issue
> FindBugs reportrs "bad practice" in QueryLoader
> -----------------------------------------------
>                 Key: DBUTILS-64
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: Bug
>    Affects Versions: 1.1, 1.2, 1.3
>            Reporter: Dan Fabulich
>            Priority: Minor
> Usage of GetResource in org.apache.commons.dbutils.QueryLoader.loadQueries(String) may
be unsafe if class is extended
> Line 97
> UI: Usage of GetResource may be unsafe if class is extended (UI_INHERITANCE_UNSAFE_GETRESOURCE)
> Calling this.getClass().getResource(...) could give results other than expected if this
class is extended by a class in another package.
> To fix this, I think we'd need to change QueryLoader to allow you to specify the class
for relative path handling.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message