Skip to content

IllegalAccessError for package-private member of AzureStorageConfiguration on WebSphere #34684

Closed
@sachinkumar579

Description

@sachinkumar579

Getting an exception after upgrading from Spring boot 3.3.8 to 3.3.9 .

Caused by: java.lang.IllegalAccessError: Class 'com.azure.spring.cloud.autoconfigure.implementation.storage.AzureStorageConfiguration$$SpringCGLIB' illegally accessing package-private member of class 'com.azure.spring.cloud.autoconfigure.implementation.storage.AzureStorageConfiguration'
at com.azure.spring.cloud.autoconfigure.implementation.storage.AzureStorageConfiguration$$SpringCGLIB.()

spring-cloud-azure-dependencies : 5.19.0
Java : A custom image built on websphere-liberty:kernel-java17-openj9

Please note it seems to be working fine with OpenJDK 17 .

Since Spring framework is responsible for creating CGLib proxies for configuration classes , posting it here.
Spring Framework 6.1.17 version shipped with Spring Boot 3.3.9. Previous spring boot version 3.3.8 had Spring Framework 6.1.17, which seemed to work fine .

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions