[hibernate-issues] [Hibernate-JIRA] Created: (HV-521) TypeDescriptor#getConstraintsForMethod() should return null for unconstrained methods

Gunnar Morling (JIRA) noreply at atlassian.com
Sun Sep 25 16:20:37 EDT 2011


TypeDescriptor#getConstraintsForMethod() should return null for unconstrained methods
-------------------------------------------------------------------------------------

                 Key: HV-521
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-521
             Project: Hibernate Validator
          Issue Type: Improvement
          Components: engine
            Reporter: Gunnar Morling
             Fix For: 4.3.0.next


The method {{TypeDescriptor#getConstraintsForMethod()}} always returns a {{MethodDescriptor}}, also if the specified method is actually unconstrained. This differs from the behavior of {{BeanDescriptor#getConstraintsForProperty()}} which returns {{null}} if the specified property has no constraints.

This change might break clients relying on the current behavior, but nevertheless we should change this IMO better earlier than later.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list