RFR (JAXP) 6770436 : Entity callback order differs between Java1.5 and Java1.6
huizhe.wang at oracle.com
Tue Nov 4 17:02:10 UTC 2014
On 11/4/2014 7:39 AM, Lance Andersen wrote:
> Hi Joe,
> looks OK.
> On Nov 3, 2014, at 4:09 PM, huizhe wang <huizhe.wang at oracle.com
> <mailto: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.
> Andersen| Principal Member of Technical Staff | +1.781.442.2037
> Oracle Java Engineering
> 1 Network Drive
> Burlington, MA 01803
> Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
More information about the core-libs-dev