You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Roman Stumm (JIRA)" <ji...@apache.org> on 2010/04/28 11:26:33 UTC

[jira] Resolved: (BVAL-26) IllegalAccessException is thrown when accesing annotation values

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

Roman Stumm resolved BVAL-26.
-----------------------------

    Resolution: Fixed

> IllegalAccessException is thrown when accesing annotation values
> ----------------------------------------------------------------
>
>                 Key: BVAL-26
>                 URL: https://issues.apache.org/jira/browse/BVAL-26
>             Project: BeanValidation
>          Issue Type: Bug
>          Components: jsr303
>    Affects Versions: 0.1-incubating
>            Reporter: Carlos Vara
>            Assignee: Roman Stumm
>         Attachments: bval-core.patch, ConstraintDefinitionsTest.java
>
>
> Reason is those values are in public abstract methods, which need to be set accessible before calling them reflectively.
> The patch chooses the safest route: always calling setAccessible(true) before invoking the method.
> I added a simple test that replicates the issue.
> 2 more tests pass with it applied.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.