-
Bug
-
Resolution: Fixed
-
Neutral
-
6.2.17
-
None
Steps to reproduce
- Start Magnolia 6
- See the following deprecation warning(s) in the startup-logs:
2022-03-08T10:46:59,202 WARN info.magnolia.cms.util.WorkspaceObservingManager : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. 2022-03-08T10:46:59,202 WARN info.magnolia.cms.util.DeprecationUtil : A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category. A deprecated class or method was used: Use reload() instead. Check the following trace: info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269), info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91), the full stacktrace will be logged in debug mode in the info.magnolia.cms.util.DeprecationUtil category.
Expected results
No warnings about deprecated classes CommandsManager and WorkspaceObservingManager
Actual results
CommandsManager still uses the deprecated method reload()
(line 268)
and produces warnings in the logs
Workaround
Development notes
Remove the deprecation utility call and leave the annotation
Acceptance criteria
- is duplicated by
-
MGNLEE-685 Deprecation warning from CommandManager.
- Closed