Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

Illegal reflective access by com.microsoft.rest.Validator #687

Description

@esfomeado

Hello,

I'm using this code:


ApplicationTokenCredentials credentials = new ApplicationTokenCredentials(
		"xxx", "xxx", "xxx", AzureEnvironment.AZURE
);

ComputeManager computeManager = ComputeManager.authenticate(new RestClient.Builder()
		.withBaseUrl(credentials.environment(), AzureEnvironment.Endpoint.RESOURCE_MANAGER)
		.withResponseBuilderFactory(new AzureResponseBuilder.Factory())
		.withSerializerAdapter(new AzureJacksonAdapter())
		.withCredentials(credentials)
		.build(), "xxx");

Map<String, String> settingsMap = new HashMap<>();
settingsMap.put("commandToExecute", "ls");

VirtualMachineExtensionInner inner = new VirtualMachineExtensionInner()
		.withPublisher("Microsoft.Azure.Extensions")
		.withVirtualMachineExtensionType("CustomScript")
		.withTypeHandlerVersion("2.1")
		.withAutoUpgradeMinorVersion(true)
		.withSettings(settingsMap);

inner.withLocation(Region.US_WEST.name());

computeManager.inner().virtualMachineExtensions().createOrUpdate("resourceGroup", "xxx",
		"CustomScript", inner);

And I get this warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.microsoft.rest.Validator (file:/C:/Users/esfomeado/.m2/repository/com/microsoft/rest/client-runtime/1.7.5/client-runtime-1.7.5.jar) to field java.util.ArrayList.serialVersionUID
WARNING: Please consider reporting this to the maintainers of com.microsoft.rest.Validator
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

Related with:
Azure/azure-sdk-for-java#14480

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions