eclipse-qvto / org.eclipse.qvto

Eclipse Public License 2.0
0 stars 1 forks source link

[tests] org.eclipse.m2m.tests.qvt.oml.callapi.TestQvtStandaloneExecutor assigntonullowner.qvto error #1121

Open eclipse-qvt-oml-bot opened 5 days ago

eclipse-qvt-oml-bot commented 5 days ago

| --- | --- | | Bugzilla Link | 583330 | | Status | NEW | | Importance | P3 normal | | Reported | Jun 11, 2024 03:33 EDT | | Modified | Jun 11, 2024 03:41 EDT | | Reporter | Ed Willink |

Description

While examining new test failures, it seems we have a long standing not-failing test.

[INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ org.eclipse.m2m.tests.qvt.oml ---\ [INFO] \ [INFO] -------------------------------------------------------\ [INFO] T E S T S\ [INFO] -------------------------------------------------------\ [INFO] Running org.eclipse.m2m.tests.qvt.oml.callapi.TestQvtStandaloneExecutor\ ERROR 0: Evaluation failed at 'assigntonullowner.qvto:18' with a reason: Null owner for property 'eClassifiers'. Expression yields an 'invalid' value.\ java.lang.UnsupportedOperationException: Null owner for property 'eClassifiers'\ at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitAssignExp(QvtOperationalEvaluationVisitorImpl.java:405)\ at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtGenericEvaluationVisitor.visitAssignExp(QvtGenericEvaluationVisitor.java:317)\ at org.eclipse.m2m.qvt.oml.ecore.ImperativeOCL.impl.AssignExpImpl.accept(AssignExpImpl.java:404)\ at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitExpression(QvtOperationalEvaluationVisitorImpl.java:417) ...\ ERROR 0: Evaluation failed at 'bug415661.qvto:7' with a reason: class org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1 cannot be cast to class java.lang.Integer (org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1 is in unnamed module of loader 'app'; java.lang.Integer is in module java.base of loader 'bootstrap'). Expression yields an 'invalid' value.\ java.lang.ClassCastException: class org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1 cannot be cast to class java.lang.Integer (org.eclipse.ocl.ecore.internal.OCLStandardLibraryImpl$1 is in unnamed module of loader 'app'; java.lang.Integer is in module java.base of loader 'bootstrap')\ at org.eclipse.ocl.EvaluationVisitorImpl.visitCollectionLiteralExp(EvaluationVisitorImpl.java:2586)\ at org.eclipse.m2m.internal.qvt.oml.evaluator.QvtOperationalEvaluationVisitorImpl.visitCollectionLiteralExp(QvtOperationalEvaluationVisitorImpl.java:2189)\ at org.eclipse.ocl.EvaluationVisitorDecorator.visitCollectionLiteralExp(EvaluationVisitorDecorator.java:179)

The second half of the error I recognize as what happens when 'invalid' is treated 'normally'; a confusing absence of a healthier diagnostic.

eclipse-qvt-oml-bot commented 5 days ago

By Ed Willink on Jun 11, 2024 03:41

(In reply to Ed Willink from comment #0)

While examining new test failures

Not repeatable; maybe caught a transitional platform/EMF jar.