Author: tmjee
Date: Fri Sep 8 11:37:54 2006
New Revision: 441606
URL: http://svn.apache.org/viewvc?view=rev&rev=441606
Log:
WW-1340
- updated javadoc indicating that if Struts2 were to made known that a
conversion error has occurred, the
converter should throw either an XWorkException or TypeConversionException
(preferably the later)
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
URL:
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java?view=diff&rev=441606&r1=441605&r2=441606
==============================================================================
---
struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
(original)
+++
struts/struts2/trunk/core/src/main/java/org/apache/struts2/util/StrutsTypeConverter.java
Fri Sep 8 11:37:54 2006
@@ -34,6 +34,9 @@
* could be used to perform some fallback conversion if
<code>convertValue</code> method of this
* failed. By default it just ask its super class (Ognl's
DefaultTypeConverter) to do the conversion.
*
+ * <p/> To allow WebWork to recongnize that a converison error has occurred,
throw an XWorkException or
+ * preferable a TypeConversionException.
+ *
* <!-- END SNIPPET: javadoc -->
*
*/