[
https://issues.apache.org/jira/browse/TOMEE-1359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14146153#comment-14146153
]
Romain Manni-Bucau commented on TOMEE-1359:
-------------------------------------------
PS: in tomee embedded deployment should make it not ambiguous at all and in
tomee remote the classloader should be enough to determine which app to use. In
all cases we don't want to enrich the test with a context we found by luck
which is what was testing your test (you put a comment regarding this purpose
and it is right that this test shouldn't have passed)
> TomEEInjectionEnricher does not always return correct AppContext
> ----------------------------------------------------------------
>
> Key: TOMEE-1359
> URL: https://issues.apache.org/jira/browse/TOMEE-1359
> Project: TomEE
> Issue Type: Bug
> Components: TomEE Arquillian Adapters
> Affects Versions: 2.0.0, 1.7.1, 2.0.0-Milestone-1
> Environment: Java 7 and 8
> Reporter: Andy Gumbrecht
> Assignee: Andy Gumbrecht
> Fix For: 2.0.0-Milestone-1, 1.7.2
>
>
> TomEEInjectionEnricher does not always return correct AppContext - The first
> context for which a BeanContext is found is returned. This has in fact been
> an arbitrary result of a List iteration (which has no guarantee of order) and
> has only come to light in differences between Java 7 and 8.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)