Summary: | Need to rework any code that iterates over chars | ||
---|---|---|---|
Product: | POI | Reporter: | PJ Fanning <fanningpj> |
Component: | POI Overall | Assignee: | POI Developers List <dev> |
Status: | RESOLVED CLOSED | ||
Severity: | enhancement | ||
Priority: | P2 | ||
Version: | 3.17-FINAL | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Mac OS X 10.1 |
Description
PJ Fanning
2017-11-20 22:48:24 UTC
Is there any way to add this to forbidden-apis-check to find the issues and make sure it stays fixed? We should forbid: Character toLowerCase() and toUpperCase() String toLowerCase() and toUpperCase() We should only use String toLowerCase(Locale) and toUpperCase(Locale) This seems to be mostly fixed now, is there still anything missing? Dominik, there are still a lot of places where the POI code iterates over chars. I suspect that it is best not to proceed with refactoring most of this code though. The risks of introducing new bugs needs to be weighed up against the likelihood that the code in question needs to be able to process Unicode surrogates correctly. |