Bug 41373 - T113 causes the build to fail
T113 causes the build to fail
Status: RESOLVED FIXED
Product: Log4j
Classification: Unclassified
Component: Other
1.2
Other other
: P2 normal
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2007-01-15 15:11 UTC by Andres Almiray
Modified: 2007-02-21 08:53 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.