1. opensymphony
  2. xwork


rainerh  committed c5316ac

Identity equals (==) in XWorkConverter makes conversion error reporting fail
Issue number: XW-406
Obtained from:
Submitted by: Dag Liodden
Reviewed by: Rainer Hermanns
CVS: ----------------------------------------------------------------------
CVS: Issue number:
CVS: If this change addresses one or more issues,
CVS: then enter the issue number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to the project by someone else; i.e.,
CVS: they sent us a patch or a set of diffs, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.

git-svn-id: http://svn.opensymphony.com/svn/xwork/branches/xwork_1-2@1104e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 654f02f
  • Branches xwork_1-2

Comments (0)

Files changed (1)

File src/java/com/opensymphony/xwork/util/XWorkConverter.java

View file
  • Ignore whitespace
     protected void handleConversionException(Map context, String property, Object value, Object object) {
-        if ((context.get(REPORT_CONVERSION_ERRORS) == Boolean.TRUE)) {
+        if ((Boolean.TRUE.equals(context.get(REPORT_CONVERSION_ERRORS)))) {
             String realProperty = property;
             String fullName = (String) context.get(CONVERSION_PROPERTY_FULLNAME);