Uncatched index probe error
Bug #1051897 reported by
David Graf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
Medium
|
Markos Zaharioudakis |
Bug Description
The following query shouldn't throw an error. But it does!
import module namespace idml = "http://
try {
idml:probe-
}
catch * {
"catch"
}
I think it has to be a problem in the compiler. Because the Iterator Tree doesn't even seem to contain a TryCatchIterator. At least the next function of the TryCatchIterator is never reached.
Changed in zorba: | |
importance: | Undecided → Critical |
assignee: | Matthias Brantner (matthias-brantner) → Markos Zaharioudakis (markos-za) |
milestone: | none → 2.9 |
Changed in zorba: | |
importance: | Critical → Medium |
milestone: | 2.9 → 3.0 |
tags: | added: error-reporting |
Changed in zorba: | |
status: | New → Fix Committed |
To post a comment you must log in.
IMHO, the query should raise a static error. The error should be (and is) detected at compile-time. The catch clause only catches errors raised during runtime. However, it is confusing that the error that is raised indicates that it's a dynamic error, i.e. zerr:ZDDY0025.
Maybe this should be changed.