Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[qvtd-dev] [Dev] OCL Sets and java Util Lists

Hi Ed,

I have been running the UMLtoRDBMSSchedule.qvti transformation to find bugs in the transformation and in the engine. I am getting the following exception

java.lang.ClassCastException: org.eclipse.ocl.examples.domain.values.impl.SetValueImpl cannot be cast to java.util.List

when executing line 425 of the transformation:

atc.leafs := Set(AttributeToColumn) {atc};

In the QVTimperativeAbstractEvaluationVisitor class, the exception is thrown by the initValue method call (line 186).

I am guessing "Set(AttributeToColumn) {atc}" in the transformation returns a SetValueImpl when visited, and then the initValue tries to assign this value to the leafs attribute which is a java.util.List. 

Is there some cast or helper method invocation missing in the initValue method, or does the Visitor must handle this?

(I have attached the complete trace).

Regards, 


--

Horacio Hoyos Rodríguez
EngD Student
University of York

Attachment: qvti.trace
Description: Binary data


Back to the top