| Digging a bit into this, I think that having Instance.get() and Instance.iterator() behave the same way is a good thing (e.g. the changes made as part of WELD-1320 make sense) Checking on the JMC, I can see that this problem is reproduceable on both version of Weld as long as CDIBean injects Instance<CDIBean2>. That might be the main trouble here - two dependent beans, one of which injects the other via Instance. Though I do not yet grasp what's the cause. The change in behaviour of Instance.iterator() is that previously all instances were created and handed over while now they get created on-demand when you invoke next(). |