This is an automated email from the ASF dual-hosted git repository. papegaaij pushed a commit to branch wicket-9.x in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/wicket-9.x by this push: new a41aa15f44 WICKET-7014: use CDI 1.1 API to create InjectionTarget a41aa15f44 is described below commit a41aa15f44d2e05a789f62980bec518e85aef797 Author: Emond Papegaaij <emond.papega...@topicus.nl> AuthorDate: Fri Nov 11 13:16:52 2022 +0100 WICKET-7014: use CDI 1.1 API to create InjectionTarget --- wicket-cdi/src/main/java/org/apache/wicket/cdi/NonContextual.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wicket-cdi/src/main/java/org/apache/wicket/cdi/NonContextual.java b/wicket-cdi/src/main/java/org/apache/wicket/cdi/NonContextual.java index 4db8fb4898..2e8b11ced6 100644 --- a/wicket-cdi/src/main/java/org/apache/wicket/cdi/NonContextual.java +++ b/wicket-cdi/src/main/java/org/apache/wicket/cdi/NonContextual.java @@ -125,7 +125,8 @@ public class NonContextual<T> { BeanManager manager = BeanManagerLookup.lookup(); AnnotatedType<? extends T> type = manager.createAnnotatedType(clazz); - this.it = (InjectionTarget<T>)manager.createInjectionTarget(type); + this.it = (InjectionTarget<T>) manager.getInjectionTargetFactory(type) + .createInjectionTarget(null); } /**