Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362110 - EDT Compiler error building payment tutorial handler project
Summary: EDT Compiler error building payment tutorial handler project
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-26 13:27 EDT by Paul Hoffman CLA
Modified: 2017-02-23 14:17 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoffman CLA 2011-10-26 13:27:14 EDT
Imported handler PaymentFileMaintenace.egl from RUI with DB tutorial into EDT.  Expected lots of red tags.   Instead got build failure with no helpful error messages to identify what needs to be changed.

Failing projects are attached.

Wed Oct 26 13:11:39 EDT 2011
EDT Build Failure

org.eclipse.edt.compiler.internal.core.builder.BuildException: java.lang.ClassCastException: org.eclipse.edt.mof.impl.EClassImpl cannot be cast to org.eclipse.edt.mof.egl.Type
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)
at org.eclipse.edt.ide.core.internal.builder.Builder.cleanBuild(Builder.java:167)
at org.eclipse.edt.ide.core.internal.builder.Builder.build(Builder.java:91)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.ClassCastException: org.eclipse.edt.mof.impl.EClassImpl cannot be cast to org.eclipse.edt.mof.egl.Type
at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofBase.setUpEglTypedElement(Egl2MofBase.java:1825)
at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofMember.visit(Egl2MofMember.java:125)
at org.eclipse.edt.compiler.core.ast.ClassDataDeclaration.accept(ClassDataDeclaration.java:88)
at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofPart.handleContents(Egl2MofPart.java:679)
at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofPart.defaultHandleVisitPart(Egl2MofPart.java:384)
at org.eclipse.edt.compiler.internal.egl2mof.Egl2MofPart.visit(Egl2MofPart.java:199)
at org.eclipse.edt.compiler.core.ast.Handler.accept(Handler.java:55)
at org.eclipse.edt.compiler.internal.egl2mof.Egl2Mof.convert(Egl2Mof.java:160)
at org.eclipse.edt.ide.core.internal.builder.AbstractProcessingQueue.createIRFromBoundAST(AbstractProcessingQueue.java:245)
at org.eclipse.edt.ide.core.internal.builder.AbstractProcessingQueue.processCompiledPart(AbstractProcessingQueue.java:221)
at org.eclipse.edt.ide.core.internal.builder.AbstractProcessingQueue.level03Compile(AbstractProcessingQueue.java:164)
at org.eclipse.edt.compiler.internal.core.builder.AbstractProcessingQueue.process(AbstractProcessingQueue.java:169)
... 17 more
Comment 1 Paul Hoffman CLA 2011-10-31 10:17:02 EDT
The priority of this can be lowered.

Got past the EDT compile error by changing the prefix on imports from "com.ibm.egl" to "org.eclipse.edt".

This is simple enough that we can tell customers who are trying to import current RUIs to start by changing the import prefix.
Comment 2 Paul Harmon CLA 2011-11-07 13:43:32 EST
I believe this was fixed with the fix for Bug 362630.
Comment 3 Paul Hoffman CLA 2011-11-09 16:17:52 EST
verified and closed