Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316974 - [EclipseLink] Library validation incorrect for EL 1.1.x (Default) platform
Summary: [EclipseLink] Library validation incorrect for EL 1.1.x (Default) platform
Status: VERIFIED FIXED
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: General (show other bugs)
Version: 2.3   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 2.3.1   Edit
Assignee: Paul Fullbright CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-15 16:50 EDT by Neil Hauge CLA
Modified: 2010-07-19 12:18 EDT (History)
1 user (show)

See Also:
neil.hauge: review+


Attachments
patch (2.29 KB, patch)
2010-06-15 18:27 EDT, Paul Fullbright CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Hauge CLA 2010-06-15 16:50:05 EDT
The following applies only to JPA project creation after having already created a JPA project in a given workspace.  The problem does not occur on the first project created, and the first project may need to be a 1.1.x project.

During project creation, library validation reports that the EL 1.1.x library is invalid for the EL 1.1.x platform.  The following is displayed: "Selected libraries do not include all required JPA annotation classes." 

The Finish button is disabled, preventing project creation at this point.  Workarounds are to select a different platform and come back to the 1.1.x platform, or disable library configuration.

Using any EL 1.1 library should produce this results.  A 2.x library will not cause this error status.
Comment 1 Paul Fullbright CLA 2010-06-15 17:52:32 EDT
Looks like this is because when creating a 1.1 project for the second time, one must first select the facet version to be 1.0, which does not fire a data model event that the default platform has changed.  The library validator is still using validation for the default platform for JPA 2.0.
Comment 2 Paul Fullbright CLA 2010-06-15 18:27:13 EDT
Created attachment 172003 [details]
patch

Refreshed the library provider enablement variable when the default platform changes when the facet version changes.  Bizarro bug.
Comment 3 Paul Fullbright CLA 2010-06-28 10:19:37 EDT
committed to head
Comment 4 Jolene Moffitt CLA 2010-07-19 12:15:02 EDT
Verified in wtp-R33.2.1M-20100716070539, which contains Dali 2.3 maintenance release.  Verified that different scenarios of creating 1.1 projects do not give erroneous errors and the finish button is enabled.