[hibernate-issues] [Hibernate-JIRA] Commented: (HV-269) Create an annotation processor validating constraint and property matching

Hardy Ferentschik (JIRA) noreply at atlassian.com
Thu Nov 19 04:15:08 EST 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HV-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34665#action_34665 ] 

Hardy Ferentschik commented on HV-269:
--------------------------------------

I created a module for the annotation processor in the trunk.

Some thoughts:
* The processor probably should have a flag on whether to fail the compilation on a wrongly configured constraint or whether to just print a warning. 
* Tests should probably utilize the javax.tools.JavaCompiler API. 
* Which constraints should we support. Should we just list the constraints we want to verify in @SupportedAnnotationTypes of the processor. This makes the processing easier/faster. If we use @SupportedAnnotationTypes(*) we have to first check whether the annotation is a constraint (ConstraintHelper.isConstraintAnnotation) and then we have to somehow decide whether there is anything to check. This approach would be interesting if we could somehow let people provide their own constraint declaration check implementations.

> Create an annotation processor validating constraint and property matching
> --------------------------------------------------------------------------
>
>                 Key: HV-269
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HV-269
>             Project: Hibernate Validator
>          Issue Type: New Feature
>          Components: engine, validators
>    Affects Versions: 4.0.2.GA
>            Reporter: Emmanuel Bernard
>            Assignee: Hardy Ferentschik
>             Fix For: 4.1.0
>
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list