From 322ac4b8d44cf66da9d5904a66802338e08f7c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Mart=C3=ADn=20Sotuyo=20Dodero?= Date: Fri, 12 Apr 2024 18:23:41 -0300 Subject: [PATCH] Accomodate for UnicodeString --- .../xpath/internal/SaxonExtensionFunctionDefinitionAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/SaxonExtensionFunctionDefinitionAdapter.java b/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/SaxonExtensionFunctionDefinitionAdapter.java index aa2e197848..85926ad7e6 100644 --- a/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/SaxonExtensionFunctionDefinitionAdapter.java +++ b/pmd-core/src/main/java/net/sourceforge/pmd/lang/rule/xpath/internal/SaxonExtensionFunctionDefinitionAdapter.java @@ -96,7 +96,7 @@ public class SaxonExtensionFunctionDefinitionAdapter extends ExtensionFunctionDe Object[] convertedArguments = new Object[definition.getArgumentTypes().length]; for (int i = 0; i < convertedArguments.length; i++) { if (arguments[i] instanceof StringLiteral) { - convertedArguments[i] = ((StringLiteral) arguments[i]).getString(); + convertedArguments[i] = ((StringLiteral) arguments[i]).getString().toString(); } } try {