8270056: Generated lambda class can not access protected static method of target class #4714
Generated lambda class can not access protected static method of the target class. The following exception is thrown when executing the attached reproducible program:
This issue is similar to JDK-8254975(#767) with slight differences: generated lambda proxy calls static protected method rather than protected member method.
The proposed fix 1) tries to use MethodHandle instead of invoking forwardee directly(since the lambda class has no access to the resolved method) and 2) does not force accepting an implClass as the first argument when invoking a static method.
The text was updated successfully, but these errors were encountered:
@kelthuzadx This change now passes all automated pre-integration checks.
After integration, the commit message for the final commit will be:
At the time when this comment was updated there had been 140 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.
@kelthuzadx Could not parse
Going to push as commit 07e9052.
Your commit was automatically rebased without conflicts.