Description: constructing CustomClassLoaderConstructor with default
 LoaderOptions to comply with the interface of snakeyaml 2.x
Author: Pierre Gruet <pgt@debian.org>
Forwarded: no
Last-Update: 2025-10-08

--- a/providers/yaml/src/main/java/org/jboss/resteasy/plugins/providers/YamlProvider.java
+++ b/providers/yaml/src/main/java/org/jboss/resteasy/plugins/providers/YamlProvider.java
@@ -5,6 +5,7 @@
 import org.jboss.resteasy.plugins.providers.yaml.i18n.Messages;
 import org.jboss.resteasy.spi.ReaderException;
 import org.jboss.resteasy.spi.WriterException;
+import org.yaml.snakeyaml.LoaderOptions;
 import org.yaml.snakeyaml.Yaml;
 import org.yaml.snakeyaml.constructor.CustomClassLoaderConstructor;
 
@@ -54,7 +55,7 @@
          if (isValidInternalType(type)) {
             return new Yaml().load(entityStream);
          } else {
-            CustomClassLoaderConstructor customClassLoaderConstructor = new CustomClassLoaderConstructor(type.getClassLoader());
+            CustomClassLoaderConstructor customClassLoaderConstructor = new CustomClassLoaderConstructor(type.getClassLoader(), new LoaderOptions());
             return new Yaml(customClassLoaderConstructor).loadAs(entityStream, type);
          }
       } catch (Exception e) {
