Frens Jan Rumph created FLINK-37602:
---------------------------------------

             Summary: add objenesis to classloader.parent-first-patterns.default
                 Key: FLINK-37602
                 URL: https://issues.apache.org/jira/browse/FLINK-37602
             Project: Flink
          Issue Type: Improvement
    Affects Versions: 1.20.1, 2.0.0
            Reporter: Frens Jan Rumph


In a project we have Kryo on the classpath; which has objenesis as a 
dependency. {{com.esotericsoftware.kryo}} is listed in 
{{classloader.parent-first-patterns.default}}, but we needed to add 
{{org.objenesis.}} to {{classloader.parent-first-patterns.additional}}. 
Otherwise Kryo would be loaded from the parent class-loader (due to the 
parent-first-patterns), but Objenesis classes would be loaded from the user 
classpath by the {{ChildFirstClassLoader}}. I think the objenesis pattern 
should be added to the default parent-first-patterns.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to