When a DynamoDbBean class use primitive types as setter's parameter, it will not be called. #3228
Labels
bug
This issue is a bug.
documentation
This is a problem with documentation.
dynamodb-enhanced
p3
This is a minor priority issue
Describe the bug
As say, I have a order class:
@DynamoDbBean
public class Order {
private Long id;
private Integer amount;
}
In this class, I use int other than Integer as the parameter of setAmount, strangely, when I try to retrieve the order I put before , the value of amount is null.
class OrderRepositoryTest {
}
Is that a bug?
Expected Behavior
I think even use primitive type as the parameter, it should work, or throw an exception.
Current Behavior
It don't call the setAmount method.
Reproduction Steps
See the code.
Possible Solution
I think even use primitive type as the parameter, it should work, or throw an exception.
Additional Information/Context
No response
AWS Java SDK version used
2.17.201
JDK version used
18
Operating System and version
macOS Monterey 12.4
The text was updated successfully, but these errors were encountered: