-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Final step methods not working #148
Comments
Yes that is completely right. This is a feature of Java ;-). But I will extend the documentation accordingly. |
It's a pity since it makes sense to make some wrapper methods final, but very well :) So this means CGLib cannot intercept final methods or is this a generic Java thing? |
In order to intercept the method, cglib (and any other framework) has to override the method. This is forbidden by the definition of |
Hi Jan,
I've just discovered that it is also not possible to properly use final step methods - in my case, it looks like this:
When I supply an enum, the second method is used for formatting, the first (correct) method is not used. When I remove the "final" modifier, everything works as expected. Is this a bug or a CGLib limitation, so it should be documented?
Regards,
Niko
The text was updated successfully, but these errors were encountered: