-
Notifications
You must be signed in to change notification settings - Fork 34
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
forbidden apis does not detect signature polymorphic methods #105
Comments
This is similar to the problems with bridge methods. There are 2 possibilities:
I will look into both options. I am about to release 2.2, so this would be a good opportunity. |
I opened PR #106 using the second approach. All informative description is there. |
uschindler
added a commit
that referenced
this issue
Jun 19, 2016
Add support for signature polymorphic methods
I committed the PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to ban MethodHandle.invoke() for some reasons (e.g. its lenient in tests, slow in production, but has a too easy sounding name). If someone wants to do the same thing, they can be explicit they want that.
But forbidden apis never detects violations, because they won't match a "wildcard" signature for these methods (since any parameters can be pushed on stack as-is). Instead it ignores all uses of this method.
The text was updated successfully, but these errors were encountered: