It seems that Spring 1.3 is going to contain a lot of cool new features. One of those is a pretty small addition increasing the quality of the error messages Spring displays when you have typos in your XML configuration files. Last week Arjen and me added so-called IntelliBean support, using an edit distance algorithm. From now on, you will get suggestions when you mistype the name of a property in your XML file(s). Exceptions from now on will look like this, considering the example given below.
org.springframework.beans.NotWritablePropertyException: Invalid property ‘nam’ of bean class [org.springframework.test.MyBean]: Bean property ‘nam’ is not writable or has an invalid setter method.
Did you mean ‘name’, or ‘names’?
# MyBean.java
public class MyBean {
public void setName(String name) { ... }
public void setNames(String[] names) { ... }
}
<bean class="org.springframework.test.MyBean">
<property name="nam" value="Alef"/>
</bean>
You can expect other significant features to be added to the 1.3 release as well.
