Closed JLLeitschuh closed 1 year ago
Going to be completely honest, I haven't tested this, but I think it would work given that it looks like SnakeYAML does set the constructors as accessible during construction.
https://bitbucket.org/snakeyaml/snakeyaml/src/1d2c1cd365774876e8c7c63eace7e906c0aca2bf/src/main/java/org/yaml/snakeyaml/constructor/Constructor.java#lines-591
Looks good to me. Thanks, also for your pointer to the SnakeYAML discussion.
Going to be completely honest, I haven't tested this, but I think it would work given that it looks like SnakeYAML does set the constructors as accessible during construction.
https://bitbucket.org/snakeyaml/snakeyaml/src/1d2c1cd365774876e8c7c63eace7e906c0aca2bf/src/main/java/org/yaml/snakeyaml/constructor/Constructor.java#lines-591