[ https://issues.apache.org/jira/browse/OWB-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Roland Bergler updated OWB-1402: -------------------------------- Description: I found the following bug within an openejb server (version 8.0.9), but can be reproduced with owb arquillian container, but not with weld. I have Managed Beans annotated with two qualifiers each. Examples from my test project: {noformat} @FoodQualifier(FoodType.FRUIT) @TasteQualifier(TasteType.JUMMY) public class Strawberry extends Food { ... {noformat} I got an injected Instance object, on which I want to select beans in a two-step process: {noformat} @Inject @Any private Instance<Food> allTypesOfFood; ... Instance<Food> vegetables = allTypesOfFood.select(new LiteralFoodType(FoodType.VEGETABLE)); Instance<Food> jummyVegetables = vegetables.select(new LiteralTasteType(TasteType.JUMMY)); {noformat} The second call to "select" seems to completely ignore the fact it is meant to be working on a restricted set, it yields all JUMMY foots, not just the vegetables. Find code here: [https://github.com/montanero/openejb-bug, |https://github.com/montanero/openejb-bug]type {{mvn install -P owb}} was: I found the following bug within an openejb server (version 8.0.9), but can be reproduced with owb arquillian container container, but not with weld. I have Managed Beans annotated with two qualifiers each. Examples from my test project: {noformat} @FoodQualifier(FoodType.FRUIT) @TasteQualifier(TasteType.JUMMY) public class Strawberry extends Food { ... {noformat} I got an injected Instance object, on which I want to select beans in a two-step process: {noformat} @Inject @Any private Instance<Food> allTypesOfFood; ... Instance<Food> vegetables = allTypesOfFood.select(new LiteralFoodType(FoodType.VEGETABLE)); Instance<Food> jummyVegetables = vegetables.select(new LiteralTasteType(TasteType.JUMMY)); {noformat} The second call to "select" seems to completely ignore the fact it is meant to be working on a restricted set, it yields all JUMMY foots, not just the vegetables. Find code here: [https://github.com/montanero/openejb-bug, |https://github.com/montanero/openejb-bug]type {{mvn install -P owb}} > CDI iterated Instance#select broken > ----------------------------------- > > Key: OWB-1402 > URL: https://issues.apache.org/jira/browse/OWB-1402 > Project: OpenWebBeans > Issue Type: Bug > Components: Injection and Lookup > Affects Versions: 2.0.25 > Environment: linux, openjdk 11 > Reporter: Roland Bergler > Priority: Major > > I found the following bug within an openejb server (version 8.0.9), but can > be reproduced with owb arquillian container, but not with weld. > I have Managed Beans annotated with two qualifiers each. Examples from my > test project: > {noformat} > @FoodQualifier(FoodType.FRUIT) > @TasteQualifier(TasteType.JUMMY) > public class Strawberry extends Food { > ... {noformat} > I got an injected Instance object, on which I want to select beans in a > two-step process: > {noformat} > @Inject @Any private Instance<Food> allTypesOfFood; > ... > Instance<Food> vegetables = allTypesOfFood.select(new > LiteralFoodType(FoodType.VEGETABLE)); > Instance<Food> jummyVegetables = vegetables.select(new > LiteralTasteType(TasteType.JUMMY)); > {noformat} > The second call to "select" seems to completely ignore the fact it is meant > to be working on a restricted set, it yields all JUMMY foots, not just the > vegetables. > Find code here: [https://github.com/montanero/openejb-bug, > |https://github.com/montanero/openejb-bug]type > {{mvn install -P owb}} > -- This message was sent by Atlassian Jira (v8.20.1#820001)