Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358257 - JSON parser failing on empty arrays
Summary: JSON parser failing on empty arrays
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 10:46 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:30 EDT (History)
1 user (show)

See Also:


Attachments
Core - Fix (3.79 KB, patch)
2011-09-20 10:47 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (2.87 KB, patch)
2011-09-20 11:36 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (4.46 KB, patch)
2011-09-20 11:48 EDT, Blaise Doughan CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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