Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352777 - NodeModelUtils exception: org.eclipse.xtext.nodemodel.impl.SyntheticCompositeNode cannot be cast to org.eclipse.xtext.nodemodel.impl.AbstractNode
Summary: NodeModelUtils exception: org.eclipse.xtext.nodemodel.impl.SyntheticComposite...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 critical (vote)
Target Milestone: SR1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-21 11:40 EDT by Timotei D CLA
Modified: 2017-09-19 17:33 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments
The exception thrown (15.46 KB, text/plain)
2011-07-21 11:41 EDT, Timotei D CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timotei D CLA 2011-07-21 11:40:01 EDT
Build Identifier: 20110615-0604

I am working on a variant of AbstractWMLProposalProvider. I override a method to complete a part of my grammar, and I get an EObject as parameter. I convert that EObject "node" to a ICompositeNode. and I have the following code based on "node".

I've seen the code and you seem to be sure that the node given to the method: findLeafNodeAtOffset is an AbstractNode not an other variant.



Reproducible: Always
Comment 1 Timotei D CLA 2011-07-21 11:41:46 EDT
Created attachment 200102 [details]
The exception thrown
Comment 2 Sebastian Zarnekow CLA 2011-07-21 11:43:03 EDT
Thanks for the bugreport.
Comment 3 Sebastian Zarnekow CLA 2011-07-22 04:34:31 EDT
Pushed to master.
Comment 4 Karsten Thoms CLA 2017-09-19 17:22:13 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:33:37 EDT
Closing all bugs that were set to RESOLVED before Neon.0