-
Bug
-
Resolution: Fixed
-
Major
-
4.1
-
None
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 !
Acceptance criteria
- is superseded by
-
MAGNOLIA-2787 InstallContext should not be available to ModuleVersionHandlers at instantiation time
- Closed