eclipse-modisco / org.eclipse.modisco

Eclipse Public License 2.0
0 stars 0 forks source link

scope mismatch in o.e.g.m.java.text.queries.GetTypeRef #220

Closed eclipse-modisco-bot closed 2 hours ago

eclipse-modisco-bot commented 2 hours ago

| --- | --- | | Bugzilla Link | 308300 | | Status | CLOSED FIXED | | Importance | P3 normal | | Reported | Apr 07, 2010 05:08 EDT | | Modified | Sep 23, 2010 04:39 EDT | | Version | 0.8.0 | | Reporter | Nicolas Bros |

Description

The query defines scopes "Expression" and "AbstractVariablesContainer", but its Java implementation throws an exception if it gets something other than "AbstractVariablesContainer" or "Annotation".

org.eclipse.gmt.modisco.infra.query.core.exception.ModelQueryExecutionException: Unexpected context type: SingleVariableDeclarationImpl expected: AbstractVariablesContainer or Annotation in GetTypeRef\ at org.eclipse.gmt.modisco.java.text.queries.GetTypeRef.evaluate(GetTypeRef.java:38)

eclipse-modisco-bot commented 2 hours ago

By Fabien Giquel on Apr 26, 2010 11:57

The "GetType" query has a scope (Expression|AbstractVariablesContainer). I have completed the implementation for computing a result for every subtype of Expression and AbstractVariablesContainer.

eclipse-modisco-bot commented 2 hours ago

By Nicolas Bros on May 07, 2010 10:07

closing