|
From: | daniel dot stankewitz at interactivedata dot com |
Subject: | [Bug classpath/33968] New: Misbehavior in java.text.DecimalFormat (scanFix) |
Date: | 1 Nov 2007 11:00:15 -0000 |
If we have a pattern like ####.##'%' an index out of bound exception is thrown because we try to access a char at length + 1. line 1353: if (i < len && pattern.charAt(i + 1) == '\'') { // we need to add ' to the buffer buffer.append(ch); i++; } Maybe it should be like this? if (i + 1 < len && pattern.charAt(i + 1) == '\'') -- Summary: Misbehavior in java.text.DecimalFormat (scanFix) Product: classpath Version: 0.96 Status: UNCONFIRMED Severity: normal Priority: P3 Component: classpath AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daniel dot stankewitz at interactivedata dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33968
[Prev in Thread] | Current Thread | [Next in Thread] |