[hibernate-issues] [Hibernate-JIRA] Commented: (HV-587) stack overflow when having @Valid on cycle

Michael G (JIRA) noreply at atlassian.com
Thu May 10 16:20:20 EDT 2012


    [ https://hibernate.onjira.com/browse/HV-587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=46604#comment-46604 ] 

Michael G commented on HV-587:
------------------------------

I would assume you have a test suite and create this case at least as quickly as I can write, zip and attach it.

> stack overflow when having @Valid on cycle
> ------------------------------------------
>
>                 Key: HV-587
>                 URL: https://hibernate.onjira.com/browse/HV-587
>             Project: Hibernate Validator
>          Issue Type: Bug
>            Reporter: Michael G
>
> When I have some entities referencing each other (a cycle), the annotation @Valid is on the corresponding getters and there is not really something to be validated on these entities (no @NotNull, ... is present) I end up in a recursion which leads to a stack overflow. 
> If there are some @NotNull the detection of cycles does work fine. 

--
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