Commit a729f1f
[bugfix] Adapt v2/xq4-core-functions extraction for develop's XQ 3.1-only parser
Two adjustments needed because develop only supports XQuery 1.0/3.0/3.1
(the new parser with XQ 4.0 support is on a separate v2/* branch):
1. FunUnparsedText.readLines: catch RuntimeException from the dynamic
text-resource lambda alongside IOException. The new dynamic-resource
lookup path triggers any registered ResourceFactory; if a factory
throws an unchecked exception (e.g. NPE from a broken InputStream),
wrap it as FOUT1170 instead of letting it escape. Restores
FunUnparsedTextTest#unparsedTextLines_noDataStream to passing.
2. Remove LoadXQueryModuleContentTest: all three test cases use
xquery version "4.0" syntax which develop's parser rejects with
XQST0031. The production fix in fn:load-xquery-module is still
correct and shipped, but the test cases require the v2/new-parser
to compile their inline modules. They will return alongside the
XQ 4.0 parser landing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent fe6a348 commit a729f1f
2 files changed
Lines changed: 3 additions & 121 deletions
File tree
- exist-core/src
- main/java/org/exist/xquery/functions/fn
- test/java/org/exist/xquery/functions/fn
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | 265 | | |
266 | | - | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
Lines changed: 0 additions & 118 deletions
This file was deleted.
0 commit comments