Bug #4462
closedIncorrect code in XSDSimpleContentRestriction
100%
Description
In XSDSimpleContentRestrriction, which handles an xs:restriction element that is a child of xs:simpleContent, line 72 reads
TypeReference ref = new TypeReference(getFingerprint(), (EnterpriseConfiguration) getConfiguration(), this);
which is clearly incorrect because getFingerprint() returns the fingerprint of the xs:restriction
element (that is, the name "xs:restriction" itself)
The bug has no observed symptoms; it was detected in 10.0 by virtue of incorrect error messages on a path triggered by another temporarily-introduced bug.
Updated by Michael Kay about 4 years ago
- Status changed from New to Resolved
- Applies to branch 9.9, trunk added
- Fix Committed on Branch 9.9, trunk added
I think there are no adverse consequences because the TypeReference is immediately fixed up to its target type, so the fingerprint is never used, but I have corrected it anyway.
Updated by O'Neil Delpratt about 4 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in Maintenance Release 9.9.1.7 added
Patch applied in the 9.9.1.7 maintenance release.
Please register to edit this issue