Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-927
Type: Task Task
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: andr maza
Votes: 1
Watchers: 2

If you were logged in you would be able to see more operations.

Upgrade eclipselink.jar dependency to latest release (2.0.1)

Created: 04/Mar/10 08:44 AM   Updated: 13/Mar/10 09:30 AM
Component/s: Compass::Gps
Affects Version/s: 2.3.0 beta1
Fix Version/s: None

Compass Trunk
EclipseLink 2.0.1

 Description  « Hide
The method signature of SessionEventManager.getListeners has changed in EclipseLink 2.0.1. Instead of a Vector the return type of the method is now a typified list.

Thus, when using the latest compass build from SVN with EclipseLink 2.0.1, a NoSuchMethodException is thrown. Updating the eclipselink.jar dependency of compass to 2.0.1 solves the problem.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Ori Dagan added a comment - 13/Mar/10 09:30 AM
Compiling with EclipseLink 2.0.x will make compass unusable with EclipseLink versions prior to 2.0.0 (which is fine by me, but it should be recognized and documented).
Another solution that would be backwards compatiable with EclipseLink 1.2 is to call SessionEventManager.getListeners by reflection. Since List<T> inherits from Vector, and compass uses the narrower type, this should work with both versions.