protected void validateLambda()

in modules/privilizer/weaver/src/main/java/org/apache/commons/weaver/privilizer/BlueprintingVisitor.java [372:382]


        protected void validateLambda(final Handle handle) {
            super.validateLambda(handle);
            final Type ownerType = Type.getObjectType(handle.getOwner());
            final Method method = new Method(handle.getName(), handle.getDesc());

            if (!(isAccessible(ownerType) && isAccessible(ownerType, method))) {
                throw new IllegalStateException(
                    String.format("Blueprint method %s.%s utilizes inaccessible method reference %s::%s", owner,
                        methodKey.getRight(), handle.getOwner(), method));
            }
        }