Open chrylis opened 1 year ago
Does it work if you add @DynamoDbIgnore
to the method?
As noted, I cannot add @DynamoDbIgnore
to the method; it is generated code.
I apologize, missed that detail in the description.
Request acknowledged.
Community note: please vote by adding a 👍 reaction to the original issue to help us prioritize this request.
Are you using Groovy for entity modeling? Does it work?
Describe the bug
When using
@DynamoDbImmutable
, the mapper throws an exception if any custom non-property method exists.In the specific case of Groovy's
@groovy.transform.EqualsAndHashCode
, an entirely innocent method@Generated public boolean canEqual(Object)
is created, and the mapper throws. Note that as this is a generated method, I don't even have the opportunity to annotate it.Expected Behavior
I expected a plain (generated) method that does not map as a JavaBeans getter to be ignored by the mapper.
Current Behavior
Reproduction Steps
Possible Solution
ImmutableIntrospector
should not assume infilterAndCollectGetterMethods
andisMappableMethod
that every method is a property getter.Additional Information/Context
No response
AWS Java SDK version used
2.19.25
JDK version used
openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)
Operating System and version
Gentoo Linux