Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACCEPT_CASE_INSENSITIVE_PROPERTIES fails with @JsonUnwrapped #1493

Closed
cowtowncoder opened this issue Jan 10, 2017 · 0 comments
Closed

ACCEPT_CASE_INSENSITIVE_PROPERTIES fails with @JsonUnwrapped #1493

cowtowncoder opened this issue Jan 10, 2017 · 0 comments
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: moved from FasterXML/jackson-dataformat-csv#133)

When trying to deserialize type like:

public class Person {
  @JsonUnwrapped(prefix = "businessAddress.")
  public Address businessAddress;
}

public class Address {
  public String street;
  public String addon;
  public String zip = "";
  public String town;    
  public String country;
}

with case-insensitive mapper (mapper.enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES);) I get exception:

java.util.NoSuchElementException: No entry 'businessAddress' found, can't remove
	at com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.remove(BeanPropertyMap.java:447)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:534)
	at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:293)
   ...
@cowtowncoder cowtowncoder added this to the 2.8.6 milestone Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant