This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 381435 - ClassCastException: rename Java persistent type when mapping file has persistent type
Summary: ClassCastException: rename Java persistent type when mapping file has persist...
Status: CLOSED DUPLICATE of bug 344742
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: Diagram Editor (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Petya Sabeva CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-01 16:43 EDT by Nan Li CLA
Modified: 2012-06-15 04:34 EDT (History)
0 users

See Also:


Attachments
stack trace (4.01 KB, text/plain)
2012-06-01 16:44 EDT, Nan Li CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nan Li CLA 2012-06-01 16:43:13 EDT
Build Identifier: I-3.4.0-20120531193257

1. Create a mapping file and add a class to it
2. Open the diagram editor and create a Java entity or mapped superclass (different class from the one added to the mapping file in step 1)
3. Try to rename the Java entity or mapped superclass created in step 2

An ClassCastException is thrown saying

java.lang.ClassCastException: org.eclipse.jpt.jpa.core.internal.jpa1.context.orm.GenericOrmPersistentType cannot be cast to org.eclipse.jpt.jpa.core.context.java.JavaPersistentType

A full stack trace is attached.

Reproducible: Always
Comment 1 Nan Li CLA 2012-06-01 16:44:26 EDT
Created attachment 216714 [details]
stack trace
Comment 2 Petya Sabeva CLA 2012-06-15 04:34:41 EDT

*** This bug has been marked as a duplicate of bug 344742 ***