Skip to content

Commit 23827b9

Browse files
committed
[bugfix] Fix an issue in the XQuery function util:describe-function#1 whereby QName#toString() was being called instead of QName#getStringValue()
1 parent 48bc6cd commit 23827b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exist-core/src/main/java/org/exist/xquery/functions/util/DescribeFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ private void writeAnnotations(FunctionSignature signature, MemTreeBuilder builde
199199
if (annots != null) {
200200
for (final Annotation annot : annots) {
201201
attribs.clear();
202-
attribs.addAttribute(null, "name", "name", "CDATA", annot.getName().toString());
202+
attribs.addAttribute(null, "name", "name", "CDATA", annot.getName().getStringValue());
203203
attribs.addAttribute(null, "namespace", "namespace", "CDATA", annot.getName().getNamespaceURI());
204204
builder.startElement(ANNOTATION_QNAME, attribs);
205205
final LiteralValue[] value = annot.getValue();

0 commit comments

Comments
 (0)