Skip to content

Commit b55849d

Browse files
authored
Merge pull request #4994 from evolvedbinary/6.x.x/hotfix/error-java-stack-xdm-type
[6.x.x] Correct the XDM type for the Sequence holding a representation of a Java Stack Trace when an error occurs
2 parents b8090ca + 6cc3d93 commit b55849d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xquery/TryCatchExpression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private void addFunctionTrace(final Throwable t) throws XPathException {
530530

531531
private void addJavaTrace(final Throwable t) throws XPathException {
532532
final LocalVariable localVar = new LocalVariable(QN_JAVA_STACK_TRACE);
533-
localVar.setSequenceType(new SequenceType(Type.QNAME, Cardinality.ZERO_OR_MORE));
533+
localVar.setSequenceType(new SequenceType(Type.STRING, Cardinality.ZERO_OR_MORE));
534534

535535
final Sequence trace;
536536
if (t != null && t.getStackTrace() != null) {

0 commit comments

Comments
 (0)