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
While working on #44465 I noticed that DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry (introduced in 0321a8a) is public unlike other setters in this class that are package-private. There are no usages of #setObservationRegistry outside of its package so this was likely by accident.
The text was updated successfully, but these errors were encountered:
Thanks for the report. While there isn't any usage of it, it is now public in a GA version of Spring Boot so I am not sure if we could change that in a maintenance release. Flagging for team attention to see what the rest of the team think.
wilkinsona
changed the title
Review visibility of DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry
Deprecate DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry as it should not be public
Mar 5, 2025
We're going to deprecate setObservationRegistry in 3.3.x onwards as it should not have been public. Once the deprecation period has elapsed, we'll make it package private. In the meantime, callers elsewhere in Boot can suppress the warning.
wilkinsona
changed the title
Deprecate DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry as it should not be public
DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry should not be public
Mar 5, 2025
While working on #44465 I noticed that
DefaultJmsListenerContainerFactoryConfigurer#setObservationRegistry
(introduced in 0321a8a) ispublic
unlike other setters in this class that are package-private. There are no usages of#setObservationRegistry
outside of its package so this was likely by accident.The text was updated successfully, but these errors were encountered: