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
I have a class name set in spring.cloud.refresh.never-refreshable to be ignored for refresh.
This however doesn't work because Spring adds some EnhancerBySpringCGLIB to the class name.
Thus, this snippet org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder#getNeverRefreshable fails when calling getClass().getName()
Sample
1.) set prop: spring.cloud.refresh.never-refreshable=com.sth.IgnoreMe
2.) bean.getClass().getName() - returns during runtime a modified com.sth.IgnoreMe$$EnhancerBySpringCGLIB$$aaffeeaa and the comparison against the prop value of com.sth.IgnoreMe fails.
The text was updated successfully, but these errors were encountered:
Describe the bug
Hi folks,
I have a class name set in spring.cloud.refresh.never-refreshable to be ignored for refresh.
This however doesn't work because Spring adds some EnhancerBySpringCGLIB to the class name.
Thus, this snippet org.springframework.cloud.context.properties.ConfigurationPropertiesRebinder#getNeverRefreshable fails when calling getClass().getName()
Sample
1.) set prop: spring.cloud.refresh.never-refreshable=com.sth.IgnoreMe
2.) bean.getClass().getName() - returns during runtime a modified com.sth.IgnoreMe$$EnhancerBySpringCGLIB$$aaffeeaa and the comparison against the prop value of com.sth.IgnoreMe fails.
The text was updated successfully, but these errors were encountered: