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

Bug 397926

Summary: [New Dynamic Entity Wizard] ClassCastException: enter class name when selecting generic JPA project
Product: [WebTools] Dali JPA Tools Reporter: Nan Li <nan.n.li>
Component: JPAAssignee: Nan Li <nan.n.li>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: neil.hauge
Version: 3.3   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Attachments:
Description Flags
Stack Trace none

Description Nan Li CLA 2013-01-10 17:30:14 EST
Created attachment 225486 [details]
Stack Trace

ClassCastException occurs when first selecting a generic JPA project and then opening the New Dynamic Entity wizard through Quick Access to specify a class name. The full stack trace is attached.
Comment 1 Nan Li CLA 2013-01-14 10:06:00 EST
This bug is fixed along with bug 397925. The persistence unit gotten was directly casted to EclipseLinkPersistenceUnit without checking its type so this problem occurred when a generic project was selected. I changed the returned project to EclipseLink JPA project to ensure safe class cast here.
Comment 2 Neil Hauge CLA 2013-03-11 15:57:28 EDT
Fixed with patch for bug 397925.