Bug 51574

Summary: HSSFWorkbook is final
Product: POI Reporter: Chris B <egore>
Component: HSSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.7-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Chris B 2011-07-28 11:52:08 UTC
Since POI 3.7 the class HSSFWorkbook is declared final, while it was not in 3.6. Also XSSFWorkbook is not declared final.

I need to extend the class which now no longer is possible. Is there any reason the class was made final? Or can this be reverted?
Comment 1 Chris B 2011-07-28 11:54:11 UTC
Just verified that this behaviour is the same in 3.8-beta3
Comment 2 Yegor Kozlov 2011-07-28 13:03:55 UTC
A similar request was requested in the past:


Use composition instead of inheritance, this is the recommended approach to extend POI.


*** This bug has been marked as a duplicate of bug 45919 ***