myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Updated] (EXTVAL-147) @BeanValidation ignored at class level when using CDI Scopes
Date Fri, 19 Oct 2012 15:50:16 GMT

     [ https://issues.apache.org/jira/browse/EXTVAL-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gerhard Petracek updated EXTVAL-147:
------------------------------------

    Status: Patch Available  (was: Open)
    
> @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
>
> @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

Mime
View raw message