You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❗ Build Failure due to Private Inner Class in SpringDoc 2.8.6
Description
When using SpringDoc 2.8.6 with Spring Boot AOT (e.g., bootJar for GraalVM native builds), the build fails with an error related to a private inner class in the SpringDocSpecPropertiesConfiguration:
error: SpecificationStringPropertiesCustomizerBeanPostProcessor has private access in SpringDocSpecPropertiesConfiguration
is defined as a private static inner class, which makes it inaccessible to the Spring AOT engine. During AOT processing, Spring attempts to register this class via generated code, but fails due to access restrictions.
Expected Behavior
AOT-generated code must be able to instantiate and register beans. This requires the class to be at least package-private, and ideally public, to ensure compatibility across module boundaries and reflection scenarios.
Suggested Fix
Please update the class definition in SpringDocSpecPropertiesConfiguration.java from:
❗ Build Failure due to Private Inner Class in SpringDoc
2.8.6
Description
When using SpringDoc
2.8.6
with Spring Boot AOT (e.g.,bootJar
for GraalVM native builds), the build fails with an error related to a private inner class in theSpringDocSpecPropertiesConfiguration
:Cause
In
2.8.6
, the class:is defined as a private static inner class, which makes it inaccessible to the Spring AOT engine. During AOT processing, Spring attempts to register this class via generated code, but fails due to access restrictions.
Expected Behavior
AOT-generated code must be able to instantiate and register beans. This requires the class to be at least package-private, and ideally public, to ensure compatibility across module boundaries and reflection scenarios.
Suggested Fix
Please update the class definition in
SpringDocSpecPropertiesConfiguration.java
from:to:
This will resolve the native build/AOT failure and restore compatibility with
bootJar
and GraalVM native builds.How to Reproduce
3.2.x
with AOT/native image support enabled.2.8.6
).Environment
3.2.x
2.8.6
spring-boot-maven/gradle-plugin
The text was updated successfully, but these errors were encountered: