Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Allow JsonField to be used as a parameter annotation (enhancement request) #19

Open
goncalossilva opened this issue Jan 10, 2015 · 2 comments

Comments

@goncalossilva
Copy link

Some projects have deep class hierarchies where member fields are inaccessible. If JsonField could be applied to arguments, this would be easy to overcome.

Example:

class Fuu extends Fu {
    public Fuu(@JsonField(fieldName="le_fu") boolean leFu) {
        super(leFu);
    }
}
@ttung
Copy link
Contributor

ttung commented Feb 18, 2015

This would require a substantial change to the generated code. As a hacky workaround, you could create a model object that shares the same fields. Once initialized, it could use the postprocess() hook to call the relevant constructor. Not the greatest solution, I realize. :/

@ghost
Copy link

ghost commented Aug 4, 2015

Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants