Project

Profile

Help

Bug #2540

closed

Unwanted warning with JAXBSource

Added by O'Neil Delpratt almost 9 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Internals
Sprint/Milestone:
Start date:
2015-12-15
Due date:
% Done:

100%

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

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 issues

Related to Saxon - Bug #2551: Reused source parser may be configured incorrectlyClosedMichael Kay2015-12-17

Actions
Actions #1

Updated by Michael Kay almost 9 years ago

  • Related to Bug #2551: Reused source parser may be configured incorrectly added
Actions #2

Updated by Michael Kay almost 9 years ago

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.

Actions #3

Updated by O'Neil Delpratt almost 9 years ago

  • Fixed in Maintenance Release 9.7.0.2 added

Bug fix applied in the Saxon 9.7.0.2 maintenance release

Actions #4

Updated by O'Neil Delpratt almost 9 years ago

  • 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

Actions #5

Updated by O'Neil Delpratt over 8 years ago

  • 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.

Actions #6

Updated by O'Neil Delpratt over 8 years ago

  • 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