RFR (JAXP) 6770436 : Entity callback order differs between Java1.5 and Java1.6
lance.andersen at oracle.com
Tue Nov 4 15:39:09 UTC 2014
On Nov 3, 2014, at 4:09 PM, huizhe wang <huizhe.wang at oracle.com> wrote:
> The order of the Character event for a built-in entity reference was wrong after the integration of StAX in JDK 6. The error was introduced when all Character event was moved to the scanDocument method. The Character event in handleCharacter method was then commented out to avoid duplicate Character event. However, that change also changed the event sequence, startEntity - characters - endEntity became startEntity - endEntity - characters.
> The following fix adds a flag builtInRefCharacterHandled to indicate whether or not the Character event has been handled. If yes, an ENTITY_REFERENCE is returned, which does nothing.
> Please review.
Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com
More information about the core-libs-dev