Browse Source

Fix typo in util:constant error reporting

Issue: SPR-9260
pull/63/head
Chris Beams 14 years ago
parent
commit
4653dbe73f
  1. 2
      spring-beans/src/main/java/org/springframework/beans/factory/config/FieldRetrievingFactoryBean.java

2
spring-beans/src/main/java/org/springframework/beans/factory/config/FieldRetrievingFactoryBean.java

@ -171,7 +171,7 @@ public class FieldRetrievingFactoryBean @@ -171,7 +171,7 @@ public class FieldRetrievingFactoryBean
int lastDotIndex = this.staticField.lastIndexOf('.');
if (lastDotIndex == -1 || lastDotIndex == this.staticField.length()) {
throw new IllegalArgumentException(
"staticField must be a fully qualified class plus method name: " +
"staticField must be a fully qualified class plus static field name: " +
"e.g. 'example.MyExampleClass.MY_EXAMPLE_FIELD'");
}
String className = this.staticField.substring(0, lastDotIndex);

Loading…
Cancel
Save