Hi all, I’ve opened a PR for SDK-411 (Jira). My Jira account is still view-only, so I’m posting here instead of commenting on the ticket.
The platform and refapp archetypes generated an Activator with a shutdown() method, which BaseModuleActivator doesn’t define, so it was never called. Both templates now implement stopped() instead, with @Override on started() and stopped() so a misnamed lifecycle method fails to compile.
I checked it by generating a module from the patched platform archetype (platform 2.8.0, Java 8) and compiling its Activator against openmrs-api 2.8.0.
The Activator.shutdown() mention in core’s ModuleFactory javadoc is in openmrs-core, so I left it out of this PR. I’m happy to send that as a separate TRUNK fix if it’s wanted.
Reviews welcome, thanks!