| 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: | JPA | Assignee: | 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: |
|
||||||
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. Fixed with patch for bug 397925. |
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.