You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bval.apache.org by "Carlos Vara (JIRA)" <ji...@apache.org> on 2010/04/28 11:03:31 UTC
[jira] Created: (BVAL-26) IllegalAccessException is thrown when
accesing annotation values
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
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.
[jira] Updated: (BVAL-26) IllegalAccessException is thrown when
accesing annotation values
Posted by "Carlos Vara (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlos Vara updated BVAL-26:
----------------------------
Attachment: ConstraintDefinitionsTest.java
bval-core.patch
Attached patch.
> 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
> 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.
[jira] Assigned: (BVAL-26) IllegalAccessException is thrown when
accesing annotation values
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Stumm reassigned BVAL-26:
-------------------------------
Assignee: Roman Stumm
> 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.
[jira] Updated: (BVAL-26) IllegalAccessException is thrown when
accesing annotation values
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/BVAL-26?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roman Stumm updated BVAL-26:
----------------------------
Fix Version/s: 0.1-incubating
> 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
> Fix For: 0.1-incubating
>
> 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.
[jira] Resolved: (BVAL-26) IllegalAccessException is thrown when
accesing annotation values
Posted by "Roman Stumm (JIRA)" <ji...@apache.org>.
[ 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.