Holy shit! This is a *HUGE* bug. We (and Xerces) use StringBuffers all over the place!!! In fact, it seems that StringBuffer.toString() is our hotspot.
I'll come up with more profile information soon.
Why don't you switch to 1.3.1?
For that matter, 1.4.0 would behave just OK (infact someone is simply replacing the StringBuffer class in the rt.jar file with the 1.4.0 counterpart... scary :-)). Yet it would be *much* better have a 1.4.1.x out RSN to fix this important issue.
Ciao,
-- Gianugo Rabellino Pro-netics s.r.l. http://www.pro-netics.com