Bug 48012 - Loader.getResource should honor the ignoreTCL property
Summary: Loader.getResource should honor the ignoreTCL property
Status: RESOLVED DUPLICATE of bug 47967
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Configurator (show other bugs)
Version: 1.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 09:21 UTC by Feldhacker
Modified: 2009-11-08 13:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Feldhacker 2009-10-16 09:21:47 UTC
The org.apache.log4j.helpers.Loader.getResource method should honor the "log4j.ignoreTCL" system property.  The ignoreTCL property is currently honored by the loadClass method, but the same class loader issues exist when loading resources as exists when loading classes.

In the getResource method, the current line:
  	if(!java1) {
Should be changed to:
  	if(!java1 && !ignoreTCL) {
Comment 1 Curt Arnold 2009-11-08 13:00:54 UTC

*** This bug has been marked as a duplicate of bug 47967 ***