Bug 41373

Summary: T113 causes the build to fail
Product: Log4j - Now in Jira Reporter: Andres Almiray <aalmiray>
Component: OtherAssignee: log4j-dev <log4j-dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 1.2   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description Andres Almiray 2007-01-15 15:11:45 UTC
This is probably a know issue but couldn't find any reference to it, there is a
class (T113) inside src/org/apache/log4j/test/serialization/T that causes the
build to fail, because it references the now non-existant priority field on
LoggingEvent. Should this class even exist, it has a default package.

PROOF:
  Hashtable eventToHashtable(LoggingEvent event) {
    Hashtable ht = new Hashtable();
    ht.put("categoryName", event.categoryName);
    ht.put("renderedMessage", event.getRenderedMessage());
    ht.put("priorityStr", event.priority.toString());
    ht.put("throwableInfo", event.getThrowableInformation());
    return ht;
  }
Comment 1 Curt Arnold 2007-01-15 22:13:08 UTC
T113.java is a dead file in the source directory but not compiled by the Ant script.  It has annoyed me for a 
while when I've used IDE's that automatically scanned the source directory.  I think there are other dead 
files but this is the only one that no longer compiles.  I have not removed it since I've tried to minimize 
changes on the 1.2 branch, however it might be good to remove all the dead files from the log4j 1.2 
branch.
Comment 2 Curt Arnold 2007-02-21 08:53:51 UTC
The src/java/org/apache/log4j/test directory was removed in rev 510099.