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

Bug 352777

Summary: NodeModelUtils exception: org.eclipse.xtext.nodemodel.impl.SyntheticCompositeNode cannot be cast to org.eclipse.xtext.nodemodel.impl.AbstractNode
Product: [Modeling] TMF Reporter: Timotei D <kimi_anwen>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: critical    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: SR1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
The exception thrown none

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