Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.1, 3.2
-
Severity 2 - Major
-
Description
I was investigating this question on the forums. I'm not positive, but I think this user has uncovered a bug... It looks like ModuleDescriptor.init() is called before external plugins are loaded, so calling plugin.loadClass() within init() will throw an IllegalPluginStateException. (I guess that bundled plugins are treated differently?) Fortunately the exception text has a helpful suggestion:
Move all classloading into the enabled() method, and be sure to properly drop class and instance references in disabled().
I think this blocks developers from writing report collector plugins.