Details
-
Type:
Bug
-
Status: Closed
-
Priority:
TBD
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: OpenMRS 1.9.8, Platform 1.10.0, Platform 1.11.0
-
Component/s: None
Description
When loading classes, the OpenmrsClassLoader iterates through all the ModuleClassLoaders looking for the appropriate class loader to use. To pick a class loader it compares the class name to the ModuleClassLoader package name as follows:
boolean tryToLoad = name.startsWith(classLoader.getModule().getPackageName());
The problem here is that trying to load org.openmrs.reportingui.SomeClass will match for the org.openmrs.reporting classloader. We need to append a "." to the matching to ensure this doesn't happen.
Gliffy Diagrams
Attachments
Issue Links
- is related to
-
TRUNK-4350 OpenmrsClassLoader may chose wrong ModuleClassLoader when one module name is a substring of another module name and there is a period in the name
-
- Closed
-