commit | 0c2b1c8d337bf2c919b7837ae01de355af6f2c9c | [log] [tgz] |
---|---|---|
author | Carsten Ziegeler <cziegeler@apache.org> | Fri Feb 28 08:50:42 2014 +0000 |
committer | Carsten Ziegeler <cziegeler@apache.org> | Fri Feb 28 08:50:42 2014 +0000 |
tree | 9135fd87ed84d99e07a52ca20c7c7dd86ead3661 | |
parent | ce6d962c88234a51d15299b771ad1d46ce2e907d [diff] |
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());