This content has been marked as final.
Show 4 replies
-
1. Re: Class.forName() vs. Thread.currentThread().getContextCla
kconner Mar 16, 2007 4:00 AM (in response to bill.burke)You checked JIRA, right? :-)
http://jira.jboss.com/jira/browse/JBESB-466 -
2. Re: Class.forName() vs. Thread.currentThread().getContextCla
tfennelly Mar 16, 2007 6:16 AM (in response to bill.burke)This is something I've been guilty of in the past (out of ignorance of the scoping stuff).
Doesn't this also apply to getClass().getResourceAsStream(...)?
The likes of this is something we could use Macker to check for - so we get a build error/report if someone adds code matching this pattern. -
3. Re: Class.forName() vs. Thread.currentThread().getContextCla
kconner Mar 16, 2007 6:21 AM (in response to bill.burke)"tfennelly" wrote:
Doesn't this also apply to getClass().getResourceAsStream(...)?
Yes it does -
4. Re: Class.forName() vs. Thread.currentThread().getContextCla
kconner Mar 16, 2007 6:33 AM (in response to bill.burke)"tfennelly" wrote:
The likes of this is something we could use <a href="http://innig.net/macker/index.html">Macker</a> to check for
Forgot to add, pmd checks for this.