Project

Profile

Help

Bug #4462

closed

Incorrect code in XSDSimpleContentRestriction

Added by Michael Kay about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2020-02-22
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

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.

Actions #1

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.

Actions #2

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

Also available in: Atom PDF