Bug 51061

Summary: Wrong TargetURI in creating new table
Product: POI Reporter: Mario Di Stefano <mario.distefano>
Component: XSSFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal CC: mario.distefano
Priority: P2    
Version: 3.8-dev   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   

Description Mario Di Stefano 2011-04-14 05:02:10 UTC
I'm using 

Table t1 = sh.createTable(); 

but I found that the TargetURI of the newly created table seems to be wrong, in fact is set to "/tables/table4.xml" instead of "xl//tables/table4.xml" as all the other tables are in the file. Even inside the XLSX file's structure this seems to be wrong, all the other tables are located under "xl/tables" but my new table definition is located under "/tables".
Comment 1 Nick Burch 2011-04-14 10:33:41 UTC
Fixed in r1092281. I've also renamed xssf.model.Table to xssf.usermodel.XSSFTable as mentioned on the list, as it seems the usermodel is a better home for it given what it does.