Bug #2540
closed
Unwanted warning with JAXBSource
Applies to branch:
9.6, 9.7
Fix Committed on Branch:
9.6, 9.7
Fixed in Maintenance Release:
Description
Reported by user on forum post. See: #6244:
I am using a JAXBSource as the input for a transform and get the following message:
Selected XML parser javax.xml.bind.util.JAXBSource$1 does not recognize the feature http://xml.org/sax/features/validation
The fix was to remove the default of adding and setting the feature http://xml.org/sax/features/validation to false in the case where the user has not indicated validation on or off. The likelihood is the execution will fail if validation is not available.
Bug fixed in the class ParseOption class.
- Related to Bug #2551: Reused source parser may be configured incorrectly added
The fix caused regression (on a .NET test but I think it could happen on Java as well - see bug #2551). I have changed it so that (a) the request to switch DTD validation off causes an attempt to set the parser feature http://xml.org/sax/features/validation to false (as happened before), and (b) a failure to switch any parser feature off does not generate a warning - we continue to produce a warning for a failure to switch a feature on.
- Fixed in Maintenance Release 9.7.0.2 added
Bug fix applied in the Saxon 9.7.0.2 maintenance release
- Fixed in Maintenance Release 9.7.0.3 added
- Fixed in Maintenance Release deleted (
9.7.0.2)
Leave open until fix applied in the 9.6 branch
- Status changed from Resolved to Closed
- Fixed in Maintenance Release 9.6.0.9 added
- Fixed in Maintenance Release deleted (
9.7.0.3)
Bug fix applied in the Saxon 9.6.0.9 maintenance release.
- Sprint/Milestone set to 9.7.0.2
- Fixed in Maintenance Release 9.7.0.2 added
Please register to edit this issue
Also available in: Atom
PDF