[
https://issues.apache.org/jira/browse/EXTVAL-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek resolved EXTVAL-147.
-------------------------------------
Resolution: Fixed
> @BeanValidation ignored at class level when using CDI Scopes
> ------------------------------------------------------------
>
> Key: EXTVAL-147
> URL: https://issues.apache.org/jira/browse/EXTVAL-147
> Project: MyFaces Extensions Validator
> Issue Type: Bug
> Components: Bean Validation
> Affects Versions: 2.0.5
> Environment: WebSphere 8.0.0.2
> Reporter: Manuel Gamerdinger
> Assignee: Gerhard Petracek
> Fix For: 2.0.6, 1.2.6
>
> Attachments: EXTVAL-147.patch
>
>
> @BeanValidation annotation is ignored on class level when using CDI scopes
> (javax.enterprise.context). The problem is that the Annotation
> (@BeanValidation) is not available on objectToInspect.getClass() in
> ExtValBeanValidationMetaDataInternals#transferGroupValidationInformationToFoundGroups.
> objectToInspect.getClass() returns a CDI bytecode enhanced proxy class
> (...Dlg_$$_javassist_85) where the @BeanValidation annotation is missing.
> Reason for that is that the @BeanValidation Annotation is not marked with
> @Inherited. In that case the Annotation is not available in the proxied class.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira