<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5113?redirect=false" rel="nofollow">SPR-5113</a></strong> and commented</p>
<p dir="auto">The following paragraph is repeated twice in the javadoc for AbstractMessageListenerContainer:</p>
<ul dir="auto">
<li>&lt;b&gt;NOTE:&lt;/b&gt; The default behavior of this message listener container is to</li>
<li>&lt;b&gt;never&lt;/b&gt; propagate an exception thrown by a message listener up to the</li>
<li>JMS provider. Instead, it will log any such exception at the error level and</li>
<li>rollback the active transaction if there is one. This means that from the</li>
<li>perspective of the attendant JMS provider no listener will ever fail.</li>
</ul>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.8, 2.5.5</p>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/46?closed=1">2.0.9</a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=lacostej" rel="nofollow">Jerome Lacoste</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-798?redirect=false" rel="nofollow">SPR-798</a></strong> and commented</p>
<p dir="auto">In one of my beans, I return a Set of Longs. I use this set to populate a multiple select box on a Web.</p>
<p dir="auto">I registered an Editor to the field. When doing status.value I expected to get a Set, but I am getting a String. BindStatus reuses the following code from BindException:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public Object getFieldValue(String field) {
        FieldError fe = getFieldError(field);
        String fixedField = fixedField(field);
        // use rejected value in case of error, current bean property value else
        Object value = (fe != null) ? fe.getRejectedValue() : getBeanWrapper().getPropertyValue(fixedField);
        // apply custom editor, but not on binding failures like type mismatches
        if (fe == null || !fe.isBindingFailure()) {
                PropertyEditor customEditor = getCustomEditor(fixedField);
                if (customEditor != null) {
                        customEditor.setValue(value);
                        return customEditor.getAsText();
                }
        }
        return value;
} "><pre class="notranslate"><code class="notranslate">public Object getFieldValue(String field) {
        FieldError fe = getFieldError(field);
        String fixedField = fixedField(field);
        // use rejected value in case of error, current bean property value else
        Object value = (fe != null) ? fe.getRejectedValue() : getBeanWrapper().getPropertyValue(fixedField);
        // apply custom editor, but not on binding failures like type mismatches
        if (fe == null || !fe.isBindingFailure()) {
                PropertyEditor customEditor = getCustomEditor(fixedField);
                if (customEditor != null) {
                        customEditor.setValue(value);
                        return customEditor.getAsText();
                }
        }
        return value;
} 
</code></pre></div>
<p dir="auto">Here one can see that the customEditor is used but the method getAsText() is used, not the getValue().</p>
<p dir="auto">I don't understand this choice. It breaks symetry between displaying and submitting my form.</p>
<p dir="auto">Someone else reported the same issue on the devel list back in September 2004.<br>
<a href="http://news.gmane.org/find-root.php?message_id=%3c41378671.1090307%40pcedev.com%3e" rel="nofollow">http://news.gmane.org/find-root.php?message_id=%3c41378671.1090307%40pcedev.com%3e</a></p>
<p dir="auto">Workaround is to respecify my field using its path. Ugly.</p>
<p dir="auto">Not sure how to fix that. Fixing it would break existing code. Introducing an interface like proposed in the mail in -devel would makes things complex for what is supposed to be normal case to me.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.1.5</p>