Open eclipse-modisco-bot opened 3 days ago
By Nicolas Bros on Mar 31, 2011 12:04
Created attachment 192297 model on which the error happens
This happens on this model, when viewing instances of "CastExpression" with the Java customization enabled.
By Gregoire Dupe on Sep 28, 2011 10:52
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
| --- | --- | | Bugzilla Link | 341516 | | Status | NEW | | Importance | P5 normal | | Reported | Mar 31, 2011 12:02 EDT | | Modified | Sep 28, 2011 11:14 EDT | | Version | 0.9.0 | | Reporter | Nicolas Bros |
Description
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)