DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=27586>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=27586

HSSFRequest.addListener doesn't work for >1 listener in 2.5 FINAL

           Summary: HSSFRequest.addListener doesn't work for >1 listener in
                    2.5 FINAL
           Product: POI
           Version: 2.0FINAL
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I did a bugzilla query on this bug, but it doesn't appear to be submitted yet.

The bug occurs when using the Event API for HSSF in
org.apache.poi.hssf.eventusermodel.  For each record type, the first listener
that is added to HSSFRequest gets registered, but subsequent listeners (for a
record type with an existing listener) do not get registered.

If you look at org.apache.poi.hssf.eventusermodel.HSSFRequest.addListener() line
74 the cause is obvious.  The fix, of course, is to add the following line:

list.add(lsnr);

Seems too trivial to submit a test case to reproduce this bug, so I'll leave it
out.  Don't want to offend your intelligence.  It's just surprising to me that
this hasn't been submitted yet.

Hope this helps.  Keep up the good work, I'm looking forward to seeing a
memory-tweaked POI 3.0 because I manipulate large spreadsheets.

-jw

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to