Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.1
-
None
Description
Considering the following code:
public class MyModuleVersionHandler extends DefaultModuleVersionHandler { public MyModuleVersionHandler() { super(); final ModuleDefinition currentModule = ModuleManager.Factory.getInstance().getInstallContext().getCurrentModuleDefinition(); System.out.println(currentModule); } }
With 4.1, this print the ModuleDefinition of the module preceding the one corresponding to this version handler instead of "MyModule".
This was originally not intended to work at all, so we will possibly prevent this from working with 4.2 - see MAGNOLIA-2787 !
Checklists
Acceptance criteria
Attachments
Issue Links
- is superseded by
-
MAGNOLIA-2787 InstallContext should not be available to ModuleVersionHandlers at instantiation time
-
- Closed
-