Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367655 - [Hermes] IJPAVersion.versions() throws UnsupportedOperationException
Summary: [Hermes] IJPAVersion.versions() throws UnsupportedOperationException
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 08:51 EST by Pascal Filion CLA
Modified: 2022-06-09 10:31 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
Create an array directly since it only contains 2 items (1.19 KB, patch)
2011-12-30 08:52 EST, Pascal Filion CLA
no flags Details | Diff

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