Project

Profile

Help

Bug #4239

closed

When using a JAXP SchemaFactory, an error in the schema goes unreported

Added by Michael Kay almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Diagnostics
Sprint/Milestone:
-
Start date:
2019-06-21
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

Junit test case testValidator/testByteCodeJaxp

If there is an error in the schema (such as Cannot reference schema components in namespace http://myexample/family\ as it has not been imported) this goes unreported. All we get is an exception at the end of processing saying one error was reported.

The error finds its way to the fatalError() method of the (so-called) DRACONIAN_ERROR_HANDLER in SchemaFactoryImpl -- which for some reason ignores it.

Please register to edit this issue

Also available in: Atom PDF