From a2d456ba815e880d87bf99744782f3732ccc294c Mon Sep 17 00:00:00 2001 From: Adam Retter Date: Sun, 10 Sep 2023 18:51:59 +0100 Subject: [PATCH] [bugfix] Fix an issue in the XQuery function util:describe-function#1 whereby QName#toString() was being called instead of QName#getStringValue() --- .../java/org/exist/xquery/functions/util/DescribeFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exist-core/src/main/java/org/exist/xquery/functions/util/DescribeFunction.java b/exist-core/src/main/java/org/exist/xquery/functions/util/DescribeFunction.java index e91c81523d1..343c86a06bb 100644 --- a/exist-core/src/main/java/org/exist/xquery/functions/util/DescribeFunction.java +++ b/exist-core/src/main/java/org/exist/xquery/functions/util/DescribeFunction.java @@ -199,7 +199,7 @@ private void writeAnnotations(FunctionSignature signature, MemTreeBuilder builde if (annots != null) { for (final Annotation annot : annots) { attribs.clear(); - attribs.addAttribute(null, "name", "name", "CDATA", annot.getName().toString()); + attribs.addAttribute(null, "name", "name", "CDATA", annot.getName().getStringValue()); attribs.addAttribute(null, "namespace", "namespace", "CDATA", annot.getName().getNamespaceURI()); builder.startElement(ANNOTATION_QNAME, attribs); final LiteralValue[] value = annot.getValue();