You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2009/06/15 22:09:39 UTC
DO NOT REPLY [Bug 37058] Sheet.getProtect() generates an exception
https://issues.apache.org/bugzilla/show_bug.cgi?id=37058
--- Comment #3 from Josh Micich <jo...@gildedtree.com> 2009-06-15 13:09:38 PST ---
Original fix was in svn r368554 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=368554 )
Follow-up info:
Original test code (from bug 27749) is no longer valid:
HSSFSheet sheet = workBook.cloneSheet(index);
sheet.setProtect(true);
The method HSSFSheet.setProtect(boolean) was deprecated (svn r552425 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=552425 ) ) because
it didn't set a password hash. As of the fix for bug 47363 (svn r784240 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=784240 ) ), the
deprecated method was removed.
The test code for this problem would now look like this:
HSSFSheet sheet = workBook.cloneSheet(index);
sheet.protectSheet("secret");
This still works OK in svn trunk
--
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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org