Commit ee64a15
[refactor] Drop XQuery 4.0 binary type promotion blocks
Per @duncdrum and @line-o on PR eXist-db#6344: both reviewers flagged the two
xs:hexBinary ↔ xs:base64Binary code paths as XQ 4.0-specific (the
comments literally say "(XQuery 4.0)") and noted they don't belong in
this XQ 3.1 conformance subset. Removed:
- DynamicTypeCheck.java: the xs:base64Binary ↔ xs:hexBinary type-promotion
branch in the static-type-check ladder
- GeneralComparison.java: case (d) of resolveNumericType — cast both
operands of a general comparison to xs:base64Binary when both are
binary types. Renumbered the now-final XPTY0004 case from (e) to (d).
These will be reintroduced together with the rest of XQ 4.0 type
coercion in v2/xq4-core-functions (PR eXist-db#6260).
XQuery3Tests: 1030/1030 pass.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 12340dd commit ee64a15
2 files changed
Lines changed: 1 addition & 20 deletions
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | 152 | | |
162 | 153 | | |
163 | 154 | | |
| |||
Lines changed: 1 addition & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
1085 | | - | |
1086 | | - | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
1092 | | - | |
1093 | | - | |
1094 | | - | |
1095 | | - | |
| 1085 | + | |
1096 | 1086 | | |
1097 | 1087 | | |
1098 | 1088 | | |
| |||
0 commit comments