-
Notifications
You must be signed in to change notification settings - Fork 82
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
Pojo encoder not considered the super class attributes. #75
Comments
Here is the code, public static Map<String, Object> toMap (Object object) {
For the time being i have extended the formencoder and did the modifications. |
+1 |
can be connected with: #95 |
+1 |
Hi, |
👍 |
Hello Feign team,
The pojo encoder is not considering the base class fields.
We could restrict it till Object.
While looking into feign form code, we have come across the PojoUtil.java.
There is a method called "toMap() which will convert pojo to respective map objects.
The reflection uses the "getDeclaredFields()" which will give only current class attributes only. Hence the base class attributes will be missed out during the map conversion.
So please consider the base class attributes as well in the encoder.
Thanks for your Time,
Maria Sekar
The text was updated successfully, but these errors were encountered: