| --- | --- |
| 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.
| --- | --- | | 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.