[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1295) Entity component doesnt ensure that the the identifier field is accessible.
Chris Rudd (JIRA)
jira-events at lists.jboss.org
Mon May 7 13:26:52 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1295?page=comments#action_12361654 ]
Chris Rudd commented on JBSEAM-1295:
------------------------------------
PersistenceProvider.getId, called from EntiyHome.persist.
I am using the EntityHome component and the PersitenceProvider component.
> Entity component doesnt ensure that the the identifier field is accessible.
> ---------------------------------------------------------------------------
>
> Key: JBSEAM-1295
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1295
> Project: JBoss Seam
> Issue Type: Bug
> Affects Versions: 1.2.1.GA, 1.2.0.GA
> Reporter: Chris Rudd
>
> The Entity component uses reflection to get the identifier of that @Entity it represents. If the identifier is a private/protected @Id annotated field Entity.getIdentifier will fail with an IllegalAccessException.
> The code should be updated to call setAccessible(true) for each member / method that could be private/protected that will be accessed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list