Lors de l'exécution d'une application web Spring MVC en utilisant serpolet et obscurcissant avec Proguard, je courais à l'exception suivante:InvalidPropertyException: propriété non valide « myListName [0] » de la classe de haricots
org.springframework.web.util.NestedServletException:
Request processing failed; nested exception is
org.springframework.beans.InvalidPropertyException:
Invalid property 'listOfSomething[0]' of bean class ...
Cela a bien fonctionné avant obscurcissement , mais se casse après.
public class FormToSubmit {
private List<MyType> listOfSomething;
public List<MyType> getListOfSomething() {
return listOfSomething;
}
public void setListOfSomething(List<MyType> listOfSomething) {
this.listOfSomething = listOfSomething;
}
}
Je garde déjà tous les accesseurs de propriété publique au cours de l'obscurcissement au cours de la ligne PROGUARD suivante:
-keep public class com.package.name.model.** { *; }