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.

Please register to edit this issue

Also available in: Atom PDF