dain 2003/09/04 22:49:26
Modified: modules/common/src/java/org/apache/geronimo/common
Classes.java
Log:
The get value methods now run the value string through a StringValueParser
before
attempting any conversion.
Revision Changes Path
1.6 +7 -1
incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Classes.java
Index: Classes.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/common/src/java/org/apache/geronimo/common/Classes.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- Classes.java 5 Sep 2003 04:48:44 -0000 1.5
+++ Classes.java 5 Sep 2003 05:49:26 -0000 1.6
@@ -410,6 +410,9 @@
}
public static Object getValue(Class type, String value, URI baseURI) {
+ StringValueParser parser = new StringValueParser();
+ value = parser.parse(value);
+
if (URI.class.equals(type)) {
return baseURI.resolve(value);
}
@@ -428,6 +431,9 @@
}
public static Object getValue(Class type, String value) {
+ StringValueParser parser = new StringValueParser();
+ value = parser.parse(value);
+
// try a property editor
PropertyEditor editor = PropertyEditors.findEditor(type);
if (editor != null) {