FELIX-4442 : Lifecycle methods with wrong arguments should be treated as an error

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1572880 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
index b15c9e5..6403286 100644
--- a/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
+++ b/scrplugin/generator/src/main/java/org/apache/felix/scrplugin/helper/Validator.java
@@ -126,7 +126,7 @@
 
                 if (component.getModified() != null) {
                     if ( this.options.getSpecVersion().ordinal() >= SpecVersion.VERSION_1_1.ordinal() ) {
-                        this.checkLifecycleMethod(component.getModified(), true);
+                        this.checkLifecycleMethod(component.getModified(), true, true);
                     } else {
                         this.logError(component, "If modified version is specified, spec version must be " +
                             SpecVersion.VERSION_1_1.name() + " or higher : " + component.getModified());