JDK-6545684 : Java 6: ValidationHandler does not invoke ContentHandler.ignorableWhitespace()
  • Type: Bug
  • Component: xml
  • Sub-Component: org.xml.sax
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-04-13
  • Updated: 2012-04-25
  • Resolved: 2007-12-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6 JDK 7
1.4.0 1.4Fixed 6u18Fixed 7Fixed
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) Client VM (build 1.6.0_01-b06, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Windows XP, Linux

A DESCRIPTION OF THE PROBLEM :
  Bug 4969042 : ValidationHandler does not invoke ContentHandler.ignorableWhitespace()   has reappeared in Java 6.

See the test program attached to 4969042 .  If run using Java 6 update 1, it does not output OK.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
See the test program attached to 4969042 .  If run using Java 6 update 1, it does not output OK.

ACTUAL -
Method ignorableWhitespace() was not invoked.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
See 4969042
---------- END SOURCE ----------

Release Regression From : 5.0u10
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Comments
EVALUATION I feel obligated to point out that the JDK5 behavior was a bug. There's nothing about XML Schema validation that supports the notion of ignorable white space. However, given that it's a regression, I have checked in a fix. But I'm still trying to engage in discussion about the right answer to this problem.
13-07-2007