[jboss-jira] [JBoss JIRA] (AS7-2275) Deployment error should result when ambiguous injection is specified
Scott Marlow (Commented) (JIRA)
jira-events at lists.jboss.org
Tue Nov 1 10:12:45 EDT 2011
[ https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12638823#comment-12638823 ]
Scott Marlow commented on AS7-2275:
-----------------------------------
I'm undecided, I don't disagree with either you of. I kept this support for compatibility.
By random, I assume you mean, we pick the first PU that the code finds in the deployment. We will pick that same PU, every time the application deploys, unless structural changes are made to the application.
The advantage of making this change, is ensuring that violating applications get fixed before migrating to AS7.
> Deployment error should result when ambiguous injection is specified
> --------------------------------------------------------------------
>
> Key: AS7-2275
> URL: https://issues.jboss.org/browse/AS7-2275
> Project: Application Server 7
> Issue Type: Bug
> Components: JPA / Hibernate
> Reporter: Stuart Douglas
> Assignee: Scott Marlow
>
> If no name is specified PersistenceUnitSearch.resolvePersistenceUnitSupplier will return a PU at random, rather than throwing an exception if more than one PU is found.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list