Use error reporter set in Configuration in more places
I set an "ErrorReporterFactory" in the COnfiguration using "net.sf.saxon.Configuration.setErrorReporterFactory(Function<Configuration, ? extends ErrorReporter>)".
I use the constructor "net.sf.saxon.query.DynamicQueryContext.DynamicQueryContext(Configuration)". The dynamic query context should get the error reporter from the configuration instead of creating a standard error reporter.
I think the same when creating a static query context "net.sf.saxon.Configuration.newStaticQueryContext()", the static query context should take its initial error reporter from the Configuration.
Updated by Michael Kay almost 2 years ago
I have replaced creation of a StandardErrorReporter with a call on Configuration.makeErrorReporter() in the following places:
on the 10 branch:
SchemaManagerImpl constructor Controller c'tor StaticQueryContext c'tor and reset() DynamicQueryContext c'tor AbstractResourceCollection.optionsFromQueryParameters() CompilerInfo c'tor
on the 11 branch:
SchemaManagerImpl constructor Controller c'tor StaticQueryContext c'tor and reset() DynamicQueryContext c'tor AbstractResourceCollection.optionsFromQueryParameters() ActiveSAXSource.deliver() CompilerInfo c'tor
Updated by Michael Kay over 1 year ago
- Category set to Diagnostics
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Applies to branch 10, 11 added
- Fix Committed on Branch 10, 11 added
Marking this resolved with no further action. Note that the fixes already described will be present in 11.1 although not documented as such in the release notes.
Please register to edit this issue