| Is there a way to handle 'The object is not contained in a resource.' nicely from within ATL? [message #983915] |
Wed, 14 November 2012 03:46  |
Eclipse User |
|
|
|
I have a refining transformation of the MoDisco Java model where I drop some if statements. When I run the transformation I get the error output:
Quote:
The object 'org.eclipse.gmt.modisco.java.emf.impl.SingleVariableAccessImpl(at)50f904b1
variable declaration = org.eclipse.gmt.modisco.java.emf.impl.SingleVariableDeclarationImpl(at)ca329ff (name: audit, proxy: false) (extraArrayDimensions: 0) (varargs: false)' is not contained in a resource.
This happens when the if statement
if(audit == null) {
// other code here
}
contains a reference to the variable audit in its expression. But a variable declaration also contains a list of usageInVariableAccess that refers also to that expression of the if statement. So the variable access is a dangling reference after the if statement is dropped.
Is there a nice way to drop all such dangling references from within an ATL transformation?
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04539 seconds