Code review comment: OK, we still want service to fix this issue. We would avoid this as much as possible in long run. (maybe before end of the year)

Code under review:
public PagedFlux<VirtualMachine> listByVirtualMachineScaleSetIdAsync(String vmssId) {
        if (CoreUtils.isNullOrEmpty(vmssId)) {
            return new PagedFlux<>(() -> Mono.error(
                new IllegalArgumentException("Parameter 'vmssId' is required and cannot be null.")));
        }
        
        
        
        Method listSinglePageAsync;
        try {
            listSinglePageAsync = inner().getClass().getDeclaredMethod("listByResourceGroupSinglePageAsync", String.class, String.class, ExpandTypeForListVMs.class);
        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
        Method listNextSinglePageAsync;
        try {
            listNextSinglePageAsync = inner().getClass().getDeclaredMethod("listNextSinglePageAsync", String.class, Context.class);
        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
        java.security.AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
            listSinglePageAsync.setAccessible(true);
            listNextSinglePageAsync.setAccessible(true);
            return null;
        });
        return new PagedFlux<>(
            () -> {
                try {
                    return (Mono<PagedResponse<VirtualMachine>>)
                        listSinglePageAsync.invoke(inner(), ResourceUtils.groupFromResourceId(vmssId), String.format("'virtualMachineScaleSet/id' eq '%s'", vmssId), null);
                } catch (IllegalAccessException | InvocationTargetException e) {
                    throw new RuntimeException(e);
                }
            },
            nextLink -> {
                try {
                    return (Mono<PagedResponse<VirtualMachine>>)
                        
                        listNextSinglePageAsync.invoke(inner(), ResourceUtils.encodeResourceId(nextLink), Context.NONE);
                } catch (IllegalAccessException | InvocationTargetException e) {
                    throw new RuntimeException(e);
                }
            });
    }

Line commented on: java.security.AccessController.doPrivileged((PrivilegedAction<Object>) () -> {

Revised code:
public PagedFlux<VirtualMachine> listByVirtualMachineScaleSetIdAsync(String vmssId) {
        if (CoreUtils.isNullOrEmpty(vmssId)) {
            return new PagedFlux<>(() -> Mono.error(
                new IllegalArgumentException("Parameter 'vmssId' is required and cannot be null.")));
        }
        
        
        
        Method listSinglePageAsync;
        try {
            listSinglePageAsync = inner().getClass().getDeclaredMethod("listByResourceGroupSinglePageAsync", String.class, String.class, ExpandTypeForListVMs.class);
        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
        Method listNextSinglePageAsync;
        try {
            listNextSinglePageAsync = inner().getClass().getDeclaredMethod("listNextSinglePageAsync", String.class, Context.class);
        } catch (NoSuchMethodException e) {
            throw new RuntimeException(e);
        }
        java.security.AccessController.doPrivileged((PrivilegedAction<Object>) () -> {
            listSinglePageAsync.setAccessible(true);
            listNextSinglePageAsync.setAccessible(true);
            return null;
        });
        return new PagedFlux<>(
            () -> {
                try {
                    return (Mono<PagedResponse<VirtualMachine>>)
                        listSinglePageAsync.invoke(inner(), ResourceUtils.groupFromResourceId(vmssId), String.format("'virtualMachineScaleSet/id' eq '%s'", vmssId), null);
                } catch (IllegalAccessException | InvocationTargetException e) {
                    throw new RuntimeException(e);
                }
            },
            nextLink -> {
                try {
                    return (Mono<PagedResponse<VirtualMachine>>)
                        
                        listNextSinglePageAsync.invoke(inner(), ResourceUtils.encodeResourceId(nextLink), Context.NONE);
                } catch (IllegalAccessException | InvocationTargetException e) {
                    throw new RuntimeException(e);
                }
            });
    }