Project

Profile

Help

Bug #2058 ยป Call_te_setLocator(this)_directly_after_creation_of_the_exception_to_ensure_it_s_set_every_time.patch

Johannes Harth, 2014-04-23 17:27

View differences:

hej/net/sf/saxon/expr/instruct/Message.java (working copy)
"Processing terminated by " + StandardErrorListener.getInstructionName(this) +
" at line " + getLineNumber() +
" in " + StandardErrorListener.abbreviatePath(getSystemId()));
te.setLocator(this);
try {
String code = errorCode.evaluateAsString(context).toString();
StructuredQName errorCode = StructuredQName.fromLexicalQName(
code, false, true, context.getConfiguration().getNameChecker(), nsResolver);
te.setErrorCodeQName(errorCode);
te.setLocator(this);
} catch (XPathException err) {
// no action, ignore the error
}
    (1-1/1)