I use jackson-core:2.14.1 in my application, and I tried upgrading to newly released snakeyaml:2.0, to get rid of vulnerabilities in the earlier snakeyaml version.
I started getting the following runtime Exception with the jackson-core:2.14.1 + snakeyaml:2.0 combination :-
EXCEPTION=org.yaml.snakeyaml.parser.ParserImpl.<init>(Lorg/yaml/snakeyaml/reader/StreamReader;)V
java.lang.NoSuchMethodError: org.yaml.snakeyaml.parser.ParserImpl.<init>(Lorg/yaml/snakeyaml/reader/StreamReader;)V
at com.fasterxml.jackson.dataformat.yaml.YAMLParser.<init>(YAMLParser.java:191)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory._createParser(YAMLFactory.java:509)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:413)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:386)
at com.fasterxml.jackson.dataformat.yaml.YAMLFactory.createParser(YAMLFactory.java:15)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3677)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3645)
I then upgraded to jackson-core:2.14.2, and the above error was resolved. The latest jackson-core version worked with snakeyaml:2.0.
I'm curious above the changes in the jackson-core v2.14.2, that makes it compatible with the new snakeyaml artifact. Release notes for v2.14.2 states the following changes
:-
Request inputs on why jackson-core:2.14.2 works with snakeyaml:2.0, but jackson-core:2.14.1 doesn't.