-
Enhancement
-
Resolution: Unresolved
-
P4
-
7, 8
invokeinterface requires an IAE if the selected method is not public.
invokevirtual performs no checks on the access of the selected method (although it skips over private methods).
This distinction is unnecessary and arbitrary. It would probably be better to simply eliminate the access check for invokeinterface (and also change its behavior so that it skips private methods).
The change would be fully compatible: it eliminates an error.
invokevirtual performs no checks on the access of the selected method (although it skips over private methods).
This distinction is unnecessary and arbitrary. It would probably be better to simply eliminate the access check for invokeinterface (and also change its behavior so that it skips private methods).
The change would be fully compatible: it eliminates an error.
- is blocked by
-
JDK-8021581 Private class methods interfere with invocations of interface methods
-
- Open
-
- relates to
-
JDK-8177020 JVMS changes for Nestmates
-
- Resolved
-
-
JDK-8098577 6.5: invokevirtual must specify selection when resolved method is in interface
-
- Resolved
-
-
JDK-8024808 Lambda Spec: specify skipping of private methods during invokevirtual selection
-
- Closed
-