[jboss-jira] [JBoss JIRA] (AS7-2275) Deployment error should result when ambiguous injection is specified

Scott Marlow (JIRA) jira-events at lists.jboss.org
Wed Jun 19 08:26:21 EDT 2013


    [ https://issues.jboss.org/browse/AS7-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12782891#comment-12782891 ] 

Scott Marlow commented on AS7-2275:
-----------------------------------

Will be interesting to hear feedback from https://java.net/projects/jpa-spec/lists/jsr338-experts/archive/2013-06/message/10.

If we keep the "fail on ambiguous injection", another compromise might be adding the "default pu" property to pick the winning pu.
                
> 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
>             Fix For: 7.1.0.Beta1
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list