EVALUATION
This looks like regression introduced by fixes for 6564400 (6545684). In an attempt to improve performance of the 'ignore whitespace' patch, a mechnism was added to avoid complex tests performed in handleCharacters(). However, a flag used to indicate if the character is ignorable whitespace can sometimes fail to reset, thus may cause subsequent charcter event being skipped.
Note that after the patch for 6564400 (6545684), ignorable whitespace will be not be reported unless the feature added in that patch is enabled as demonstrated below:
saxParserFactory.setFeature("http://java.sun.com/xml/schema/features/report-ignored-element-content-whitespace", true);
Without enabling the above-mentioned feature, the testcase submitted in this bug report will report only "text" character event, that is, printing out "Characters called: text". However, ignorableWhitespace will be invoked.
*** (#1 of 1): [ UNSAVED ] ###@###.###
|