This repository has been archived by the owner on Dec 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 81
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, |
👍 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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: