Bug #2058
closedNo location information for xsl:message if evaluation of error-code fails
0%
Description
Call 'te.setLocator(this);' directly after creation of the exception to ensure it's set every time
Files
Updated by Michael Kay over 10 years ago
Thanks for offering this. Technically, it looks fine.
Sorry to be tedious, but could you please confirm that you are submitting this code to be released under the Mozilla Public License and that you have authority (e.g. from your employer) to submit it?
(In future, for a small change like this, there's less admin hassle if you just describe the change that's needed rather than submitting code; we have to review it line-by-line anyway to assess whether test cases are needed).
Updated by Johannes Harth over 10 years ago
I am the author of the attached patch file and I do confirm that I release this code under the Mozilla Public License.
Hopefully this formal statement satisfies the necessary administration hassle.
I am also fine if you do not apply the patch but just take it as a guide and write you on solution.
In the case that this would mean less hassle for you and it would speed up the implementation process, go for it!
Updated by Michael Kay over 10 years ago
- Tracker changed from Patch to Bug
- Subject changed from Always set SourceLocator for all TerminationExceptions to No location information for xsl:message if evaluation of error-code fails
- Category set to Diagnostics
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Priority changed from Low to Normal
Many thanks.
Updated by O'Neil Delpratt about 10 years ago
- Status changed from Resolved to Closed
Bug fixed in the Saxon maintenance release 9.5.1.6
Please register to edit this issue