Description
Suggestion to replace the body of ModuleNode.setScriptBaseClassFromConfig with this:
String baseClassName = null; if (unit != null) { baseClassName = unit.getConfig().getScriptBaseClass(); } else if (context != null) { baseClassName = context.getConfiguration().getScriptBaseClass(); } if(baseClassName != null) { if(!cn.getSuperClass().getName().equals(baseClassName)) { cn.setSuperClass(ClassHelper.make(baseClassName)); } }
Reason: groovy-eclipse sometimes does not have the unit set when this method gets called, but the context is available.