[MGNLEE-685] Deprecation warning from CommandManager. Created: 15/Mar/22 Updated: 15/Mar/22 Resolved: 15/Mar/22 |
|
| Status: | Closed |
| Project: | Magnolia DX Core |
| Component/s: | None |
| Affects Version/s: | 6.2.17 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Michiel Meeuwissen | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||
| Description |
|
InĀ info.magnolia.commands.CommandsManager We encounter the following code:
/**
* @deprecated since 5.4.5. This should not be public but only protected. Use {@link super#reload()} instead.
*/
@Deprecated
@Override
public synchronized void reload() {
DeprecationUtil.isDeprecated("Use reload() instead");
super.reload();
}
Which is as far as I can see always triggered. Here the stacktrace from Deprecationutil: 2022-03-15T16:21:50,646 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-15T16:21:50,646 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. 2022-03-15T16:21:50,646 DEBUG 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. java.lang.Throwable: null at info.magnolia.cms.util.DeprecationUtil.internal_isDeprecated(DeprecationUtil.java:60) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.util.DeprecationUtil.isDeprecated(DeprecationUtil.java:53) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.commands.CommandsManager.reload(CommandsManager.java:269) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.util.WorkspaceObservingManager.start(WorkspaceObservingManager.java:91) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.commands.CommandsManager$1.onModuleStartupCompleted(CommandsManager.java:103) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModulesStartedEvent.dispatch(ModulesStartedEvent.java:46) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModulesStartedEvent.dispatch(ModulesStartedEvent.java:42) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.event.SimpleEventBus.fireEvent(SimpleEventBus.java:75) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:352) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.module.ui.ModuleManagerNullUI.onStartup(ModuleManagerNullUI.java:74) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:146) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener$1.doExec(MagnoliaServletContextListener.java:259) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:407) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:404) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:378) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.startServer(MagnoliaServletContextListener.java:256) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:182) ~[magnolia-core-6.2.16.jar:?] at info.magnolia.init.MagnoliaServletContextListener.contextInitialized(MagnoliaServletContextListener.java:128) ~[magnolia-core-6.2.16.jar:?] |
| Comments |
| Comment by Michiel Meeuwissen [ 15/Mar/22 ] |
|
See |