Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341516 - [Java] query error on java.CastExpression
Summary: [Java] query error on java.CastExpression
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows 7
: P5 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 12:02 EDT by Nicolas Bros CLA
Modified: 2011-09-28 11:14 EDT (History)
1 user (show)

See Also:


Attachments
model on which the error happens (536.99 KB, application/octet-stream)
2011-03-31 12:04 EDT, Nicolas Bros CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2011-03-31 12:02:39 EDT
When I browse a Java model with the Java customization, I get the following error:

org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryTypeCheckingException: Wrong result type: org.eclipse.emf.ecore.impl.DynamicEObjectImpl is returned while java.lang.String is expected. (on textJavaQueries::getName)
	at org.eclipse.gmt.modisco.infra.query.core.AbstractModelQuery.checkResult(AbstractModelQuery.java:280)
	at org.eclipse.gmt.modisco.infra.query.core.ocl.OCLModelQueryAdapter.basicEvaluate(OCLModelQueryAdapter.java:72)
	at org.eclipse.gmt.modisco.infra.query.core.AbstractModelQuery.executeQuery(AbstractModelQuery.java:198)
	at org.eclipse.gmt.modisco.infra.query.core.AbstractModelQuery.evaluate(AbstractModelQuery.java:92)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.util.QueryUtil.basicEvaluate(QueryUtil.java:54)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.customization.CustomizationEngine.evaluate(CustomizationEngine.java:1319)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.customization.CustomizationEngine.getValue(CustomizationEngine.java:1298)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.customization.CustomizationEngine.getValue(CustomizationEngine.java:1247)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.customization.CustomizationEngine.getLabel(CustomizationEngine.java:839)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.customization.CustomizationEngine.getTypeLabel(CustomizationEngine.java:822)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.model.ModelElementItem.getDisplayName(ModelElementItem.java:496)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.model.ModelElementItem.getName(ModelElementItem.java:486)
	at org.eclipse.gmt.modisco.infra.browser.uicore.internal.model.ModelElementItem.getText(ModelElementItem.java:474)
	at org.eclipse.gmt.modisco.infra.browser.editors.BrowserLabelProvider$TextComputation.basicCompute(BrowserLabelProvider.java:69)
	at org.eclipse.gmt.modisco.infra.browser.editors.BrowserLabelProvider$TextComputation.basicCompute(BrowserLabelProvider.java:1)
	at org.eclipse.gmt.modisco.infra.browser.editors.NonBlockingElementComputation$1.run(NonBlockingElementComputation.java:66)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Comment 1 Nicolas Bros CLA 2011-03-31 12:04:16 EDT
Created attachment 192297 [details]
model on which the error happens

This happens on this model, when viewing instances of "CastExpression" with the Java customization enabled.
Comment 2 Gregoire Dupe CLA 2011-09-28 10:52:07 EDT
Hello,

I'm really sorry, but the year we have to focus on the move to EMF Facet. We
may not be able to work on this bug. That's why cannot plan this bug for the
Juno release.

Regards,
Gregoire Dupe