You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following test annotation fails with the assertion given below:
(:JIQS: ShouldCrash; ErrorCode="XPST0008"; ErrorMetadata="LINE:3:COLUMN:6:" :)
for $i in ()
where $j eq $i + 1
return $i
java.lang.AssertionError: Program did not compile when expected to.
Error output: Error [err: XPST0008]LINE:3:COLUMN:6:Uninitialized variable reference: j
It appears that this test case causes a semantic exception which later hits a shouldCompile() check that always returns true, effectively causing the given exception. If semantic exceptions are a part of test cases handled at runtime, a fix may be needed here.
The following test annotation fails with the assertion given below:
(:JIQS: ShouldCrash; ErrorCode="XPST0008"; ErrorMetadata="LINE:3:COLUMN:6:" :)
for $i in ()
where $j eq $i + 1
return $i
java.lang.AssertionError: Program did not compile when expected to.
Error output: Error [err: XPST0008]LINE:3:COLUMN:6:Uninitialized variable reference: j
It appears that this test case causes a semantic exception which later hits a shouldCompile() check that always returns true, effectively causing the given exception. If semantic exceptions are a part of test cases handled at runtime, a fix may be needed here.
Originally posted by @CanBerker in #175
The text was updated successfully, but these errors were encountered: