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

JSON Property name containing special characters fails GWT deserialization #39

Closed
pkolaric opened this issue Jan 13, 2015 · 1 comment
Closed
Assignees
Labels
Milestone

Comments

@pkolaric
Copy link

public class MyPojo {
@JsonProperty("@id")
String myIdReference
}

Will result in illegal code generation
private native void set@id(.....

@nmorel
Copy link
Owner

nmorel commented Jan 13, 2015

Ah nice catch. I'll see what I can do.
It should work if you put your field public or annotate a public setter.

@nmorel nmorel added this to the 0.7.1 milestone Jan 14, 2015
@nmorel nmorel self-assigned this Jan 14, 2015
nmorel added a commit that referenced this issue Jan 14, 2015
…cters

The solution is to stop using the property name to name generated variable/method.
@nmorel nmorel closed this as completed Jan 14, 2015
@nmorel nmorel added the bug label Jan 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants