Bug 46512

Summary: CategoryPath doesn't replace slashes to dots
Product: Log4j - Now in Jira Reporter: Przemyslaw Wesolek <pwes>
Component: OtherAssignee: log4j-dev <log4j-dev>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P2    
Version: 1.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Przemyslaw Wesolek 2009-01-12 06:07:18 UTC
Running FindBugs on log4j sources -- as part of preparing lecture, in fact -- revealed a bug in org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath.

In line 64 there is a code

  processedCategory.replace('/', '.');

and FindBugs correctly recognizes the error there as the result of replacement is ignored. The line should be

  processedCategory = processedCategory.replace('/', '.');
Comment 1 Curt Arnold 2009-01-13 12:23:39 UTC
LogFactor5 is long deprecated and is no longer maintained.  Committed change in rev 734230.