Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358665 - ClassCastException when compiling forward references for a function
Summary: ClassCastException when compiling forward references for a function
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-22 16:59 EDT by Brian Svihovec CLA
Modified: 2017-02-23 14:19 EST (History)
1 user (show)

See Also:


Attachments
Testcase. (151 bytes, application/octet-stream)
2011-09-22 16:59 EDT, Brian Svihovec CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Brian Svihovec CLA 2011-09-22 16:59:28 EDT
Created attachment 203869 [details]
Testcase.

Import the attached EGL file.

When the file is saved and built, the following exception will be thrown:

org.eclipse.edt.compiler.internal.core.builder.BuildException: java.lang.ClassCastException: org.eclipse.edt.mof.egl.lookup.ProxyElement cannot be cast to org.eclipse.edt.mof.egl.FunctionMember
	at org.eclipse.edt.compiler.internal.core.builder.AbstractProcessingQueue.process(AbstractProcessingQueue.java:187)
	at org.eclipse.edt.compiler.internal.core.builder.AbstractProcessingQueue.process(AbstractProcessingQueue.java:152)
	at org.eclipse.edt.ide.core.internal.builder.AbstractBuilder.processParts(AbstractBuilder.java:99)
	at org.eclipse.edt.ide.core.internal.builder.AbstractBuilder.build(AbstractBuilder.java:136)

Caused by: java.lang.ClassCastException: org.eclipse.edt.mof.egl.lookup.ProxyElement cannot be cast to org.eclipse.edt.mof.egl.FunctionMember
	at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofExpression.visit(Egl2MofExpression.java:361)
	at org.eclipse.edt.compiler.internal.egl2mof.Egl2Mof.visit(Egl2Mof.java:1)
	at org.eclipse.edt.compiler.core.ast.FunctionInvocation.accept(FunctionInvocation.java:45)
	at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofExpression.visit(Egl2MofExpression.java:179)
	at org.eclipse.edt.compiler.internal.egl2mof.Egl2Mof.visit(Egl2Mof.java:1)
	at org.eclipse.edt.compiler.core.ast.ArrayLiteral.accept(ArrayLiteral.java:38)
	at org.eclips
Comment 1 Paul Harmon CLA 2011-09-22 17:06:27 EDT
I have update the following to fix this:

EGL2MofExpression
FunctionInvocation
FunctionInvocationImpl
FunctionPartInvocationImpl
Comment 2 Brian Svihovec CLA 2012-01-16 21:42:39 EST
Verified in build 0.8.0.v201201120902-1CT-Fiv5_M5_LM5fUa4.