Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-dev] Fix for bug 273491 - {JAXB TCK} ArrayIndexOutOfBoundsException when unmarshalling empty byte[] element

Fix submitted for the following bug:

When attempting to unmarshall the following XML document:

<?xml version="1.0"?><employee id="123">

Where <photo> is a XMLBinaryDataMapping, the following exception will be thrown:

java.lang.ArrayIndexOutOfBoundsException: -1
        at org.eclipse.persistence.internal.oxm.conversion.Base64.base64Decode(
        at org.eclipse.persistence.internal.oxm.XMLConversionManager.convertSchemaBase64ToByteArray(
        at org.eclipse.persistence.internal.oxm.XMLInlineBinaryHandler.endElement(

Test Cases:

Patch attached to bug, reviewed by Matt MacIvor.

Rick Barkhouse | Software Developer, TopLink | 613.288.4613
Oracle Development
45 O'Connor Street, Suite 400 | Ottawa, Ontario K1P 1A4

Back to the top