https://issues.apache.org/bugzilla/show_bug.cgi?id=44892
Summary: HSSFWorkbook.getSheet(String name) is case sensitive,
but it should not be
Product: POI
Version: 3.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P1
Component: HSSF
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Version : 3.0.2-20080204
In HSSFWorkbook the getSheet function is case sensitive :
"
public HSSFSheet getSheet(String name)
{
HSSFSheet retval = null;
for (int k = 0; k < sheets.size(); k++)
{
String sheetname = workbook.getSheetName(k);
if (sheetname.equals(name)) // here is the problem
{
retval = (HSSFSheet) sheets.get(k);
}
}
return retval;
}
"
MS Excel or OpenOffice are non case sensitive for sheetName : equalsignorecase
should be used instead of equals.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]