-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Labels
bugSomething isn't workingSomething isn't working
Description
We use java.lang.reflect.AcessibleObject#setAccessible
to reflectively access fields in both the matrics and SQS utilities. We should try and remove this, if we can.
What were you trying to accomplish?
Expected Behavior
No need to reflectively access private object information in the libraries themselves. In tests this is fine.
Current Behavior
Examples:
Line 36 in 4d3484f
f.setAccessible(true); |
Line 619 in 4d3484f
constructor.setAccessible(true); |
Line 56 in 4d3484f
f.setAccessible(true); |
Possible Solution
We can either 1/ find a way to avoid the need or 2/ say "this is too hard, we will remove it in V2 by changing the interface". However we should be confident that there is no way forward with the existing interface.
Steps to Reproduce (for bugs)
Environment
- Powertools for AWS Lambda (Java) version used: 1.17.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working