Skip to content

Conversation

@pankajagrawal16
Copy link
Contributor

No description provided.


public static void setFinalField(Class<LambdaHandlerProcessor> className, String fieldName, Object value) throws IllegalAccessException {
Field field = FieldUtils.getField(className, fieldName, true);
FieldUtils.removeFinalModifier(field);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although lol it seems you cannot do this post java 12+. Too bad :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that we can build in forward compatible way

msailes
msailes previously approved these changes Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants