filter/source/xsltfilter/XSLTFilter.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d92905f099992c48fc7ec0a6d0be5675d123b833
Author:     Michael Stahl <[email protected]>
AuthorDate: Mon Jan 12 17:35:32 2026 +0100
Commit:     Michael Stahl <[email protected]>
CommitDate: Tue Jan 13 09:07:20 2026 +0100

    filter: XSLTFilter: unbreak XSLT2Transformer
    
    Creating the service fails:
    
      java.lang.ClassCastException: class com.sun.star.beans.NamedValue cannot 
be cast to class [Ljava.lang.Object; (com.sun.star.beans.NamedValue is in 
unnamed module of loader com.sun.star.lib.unoloader.UnoClassLoader @6ff3c5b5; 
[Ljava.lang.Object; is in module java.base of loader 'bootstrap')
      at 
com.sun.star.comp.xsltfilter.XSLTransformer.initialize(XSLTransformer.java:143)
      at 
com.sun.star.comp.loader.FactoryHelper$Factory.createInstanceWithArgumentsAndContext(FactoryHelper.java:271)
    
    because initialize gets a sequence<any> where the anys are NamedValues,
    but it expects a sequence<any> where the any is sequence<any> where the
    anys are NamedValues.
    
    (regression from commit d22f3b8c787b93c38925adf92af542362dbda3e6)
    
    Change-Id: I4fd13f3e04d79f7646e6bb31c8f0d35efd42ae69
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197132
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <[email protected]>

diff --git a/filter/source/xsltfilter/XSLTFilter.cxx 
b/filter/source/xsltfilter/XSLTFilter.cxx
index 00f1bd3629f3..c955d7e6b98b 100644
--- a/filter/source/xsltfilter/XSLTFilter.cxx
+++ b/filter/source/xsltfilter/XSLTFilter.cxx
@@ -234,7 +234,8 @@ namespace XSLT
             {
                 xTransformer.set(
                     
m_xContext->getServiceManager()->createInstanceWithArgumentsAndContext(
-                        u"com.sun.star.xml.xslt.XSLT2Transformer"_ustr, rArgs, 
m_xContext),
+                        u"com.sun.star.xml.xslt.XSLT2Transformer"_ustr,
+                        {Any{rArgs}}, m_xContext),
                     css::uno::UNO_QUERY_THROW);
             }
             catch (const Exception&)

Reply via email to