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

Bug 367655

Summary: [Hermes] IJPAVersion.versions() throws UnsupportedOperationException
Product: z_Archived Reporter: Pascal Filion <pascal.filion>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: unspecifiedFlags: neil.hauge: review+
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Create an array directly since it only contains 2 items none

Description Pascal Filion CLA 2011-12-30 08:51:04 EST
IJPAVersion.versions() uses Arrays.asList() to create a list from an array, that array is read-only, which means remove() cannot be used.
Comment 1 Pascal Filion CLA 2011-12-30 08:52:50 EST
Created attachment 208869 [details]
Create an array directly since it only contains 2 items
Comment 2 Neil Hauge CLA 2012-01-17 12:06:06 EST
Patch looks fine.  Curious as to why someone would be trying to call remove() on this?
Comment 3 Pascal Filion CLA 2012-01-17 15:25:52 EST
Fix checked in
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:31:16 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink