Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358257

Summary: JSON parser failing on empty arrays
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Core - Fix
none
MOXy - Test Cases
none
MOXy - Test Cases none

Description Blaise Doughan CLA 2011-09-20 10:46:11 EDT
The MOXy JSON parser is currently failing on empty arrays, and is throwing an ANTLR exception.
Comment 1 Blaise Doughan CLA 2011-09-20 10:47:37 EDT
Created attachment 203691 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2011-09-20 11:36:38 EDT
Created attachment 203695 [details]
MOXy - Test Cases
Comment 3 Blaise Doughan CLA 2011-09-20 11:48:15 EDT
Created attachment 203697 [details]
MOXy - Test Cases
Comment 4 Blaise Doughan CLA 2011-09-20 12:14:09 EDT
Fix checked into trunk at rev:  10126

Code reviewed by:  Denise Smith

Fix Details:
Modified the grammar (JSON.g) to make array contents optional.  Then regenerated the JSONParser class from the updated JSON.g.
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:30:50 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink