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

Creation of "JsonAutoDetect.Visibility.NON_TRANSIENT" #99

Closed
samuelkopp opened this issue Aug 30, 2013 · 4 comments
Closed

Creation of "JsonAutoDetect.Visibility.NON_TRANSIENT" #99

samuelkopp opened this issue Aug 30, 2013 · 4 comments

Comments

@samuelkopp
Copy link

Suggest create a Enum option "non_transient" as showed below

public boolean isVisible(Member m) {
switch (this) {
case ANY:
return true;
case NONE:
return false;
case NON_TRANSIENT:
return (!Modifier.isTransient(m.getModifiers()));

@cowtowncoder
Copy link
Member

Transient fields are already excluded, so would this make any difference?

@cowtowncoder
Copy link
Member

Also, note that RFEs for data-binding should filed at: https://github.com/FasterXML/jackson-databind/issues as this is streaming component. I can move it later on, but just for future reference.

@cowtowncoder
Copy link
Member

Ah. Based on other discussions, I am guessing that perhaps this is more regarding making transient modifier mean something more similar to @JsonIgnore: since while transient fields are indeed already ignored, they do not cause matching getters to be ignored.

If so, this might be duplicate of this issue: FasterXML/jackson-databind#296 ?

@cowtowncoder
Copy link
Member

Assuming this is a dup. If not, should be (re-)filed on jackson-databind issue tracker.

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

2 participants