Martin Kouba

Results 269 comments of Martin Kouba

> AFAICS `SmallRyeHealthReporter` is instantiated twice in Quarkus due to our CDI infra so we are initializing two `JsonProvider`. It's instantiated twice because it's an `@ApplicationScoped` bean so one instance...

Yes, it seems that we incorrectly detect the component classes for `@Inject @All List`. You can specify additional component classes via `@QuarkusComponentTest#value()` as a workaround.

> I tried @QuarkusComponentTest(value = SecondaryOne.class) and i tried @QuarkusComponentTest(value = Secondary.class) and i still didn't see sysout from postConstruct method. How should i do this? You should only add...

@dasha-klim Hm, I've just realized that even if we treat `@Inject @All List` as `@Inject X` it would not help in your use case with an interface implemented by several...

> I was under impression that adding `@Unremovable` would initialize the beans right away, even `@beforeAll` in tests. Could let me now if it is expected behaviour? Thank you. Not...

> If i try to inject Vertx using @Inject Vertx vertx i get java.lang.IllegalStateException: The injected field io.vertx.core.Vertx TestClassName.vertx expects a real component; but obtained: SYNTHETIC bean. I assume you're...

As explained in https://github.com/quarkusio/quarkus/issues/42643#issuecomment-2309934358 we can't fix this issue completely. The fix in https://github.com/quarkusio/quarkus/pull/42779 is IMO the best thing we can do. Feel free to reopen this issue or open...

> There is no order in which beans are destroyed, and I believe there is no way to affect that. > > I think @mkouba mentioned this several times: `@PreDestroy`...

> This is a draft, because it's very much not ready. The biggest open question is: does `SyntheticBeanBuilder.withInjectionPoint()` in any way affect the `Instance` lookup parameter in `SyntheticBeanCreator` / `SyntheticBeanDisposer`?...

> What are you trying to fix by adding this? > > I don't see an explanation of the problem or a linked issue. In a build-time environment, such as...