This is probably because jpy uses the base typing information from MapperBuilder as opposed to the more specific type present in the case of JsonMapper.Builder wrt com.fasterxml.jackson.databind.cfg.MapperBuilder#configure. It would be ideal if jpy knew that JsonMapper#configure returned a JsonMapper.
public class JsonMapper extends ObjectMapper
{
...
public static class Builder extends MapperBuilder<JsonMapper, Builder> {
...
Certain patterns that compile in java are not currently executable in jpy.
For example,
fails with
If the code is modified as such:
it works (enable comes first).
This is probably because jpy uses the base typing information from MapperBuilder as opposed to the more specific type present in the case of JsonMapper.Builder wrt
com.fasterxml.jackson.databind.cfg.MapperBuilder#configure
. It would be ideal if jpy knew thatJsonMapper#configure
returned aJsonMapper
.