Bug 44326 - POILogger log(level,string,exception) calls itself in an endless loop
Summary: POILogger log(level,string,exception) calls itself in an endless loop
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 3.0-FINAL
Hardware: PC other
: P2 minor (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-30 07:23 UTC by Dirk Vanhaute
Modified: 2008-02-01 04:31 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Vanhaute 2008-01-30 07:23:01 UTC
The method 
    public void log(final int level, final Object obj1,
                    final Throwable exception)
    {
        log(level , obj1, exception);
    }

recursively calls itself.  I suppose the exception should be PrintStackTrace()d 
together with the obj1.toString()
As I am using commons, I would like to see this interface extended with log
(final int level, final Throwable exception)
Comment 1 Nick Burch 2008-02-01 04:31:17 UTC
Try with svn trunk. I've fixed it to avoid the infinite loop, added
log(level,throwable), and updated the CommonsLogger to take advantage of that