From a77c2353b329218549e9812f68dc0a8ab946c294 Mon Sep 17 00:00:00 2001 From: Adriano Marcondes Machado Date: Mon, 26 Jul 2021 12:51:25 -0300 Subject: [PATCH] Changes to work with Weld 3.1+ (Wildfly 18) --- vraptor-core/pom.xml | 6 +++--- .../src/main/java/br/com/caelum/vraptor/VRaptor.java | 2 +- .../main/java/br/com/caelum/vraptor/proxy/CDIProxies.java | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/vraptor-core/pom.xml b/vraptor-core/pom.xml index b7d02f01e..bfc9a95a6 100644 --- a/vraptor-core/pom.xml +++ b/vraptor-core/pom.xml @@ -100,7 +100,7 @@ org.jboss.weld.se weld-se-core - 3.0.4.Final + 3.1.2.Final provided @@ -235,8 +235,8 @@ org.jboss.arquillian.container - arquillian-weld-ee-embedded-1.1 - 1.0.0.CR3 + arquillian-weld-embedded + 2.1.0.Final test diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java index 68d3b6bb5..15883903e 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/VRaptor.java @@ -58,7 +58,7 @@ @WebFilter(filterName="vraptor", urlPatterns="/*", dispatcherTypes={DispatcherType.FORWARD, DispatcherType.REQUEST}, asyncSupported=true) public class VRaptor implements Filter { - public static final String VERSION = "4.3.0-beta-3-SNAPSHOT"; + public static final String VERSION = "4.3.0-beta-4-SNAPSHOT"; private final Logger logger = getLogger(VRaptor.class); diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/proxy/CDIProxies.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/proxy/CDIProxies.java index f00af1d68..4e8e0fe35 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/proxy/CDIProxies.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/proxy/CDIProxies.java @@ -47,7 +47,7 @@ public static Class extractRawTypeIfPossible(Class type) { public static T unproxifyIfPossible(T source) { if (source instanceof TargetInstanceProxy) { TargetInstanceProxy target = (TargetInstanceProxy) source; - return target.getTargetInstance(); + return target.weld_getTargetInstance(); } return source; }