This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans.git

commit 34da9fe51704b1eecf2e6b0fe28039f2b06ba6f2
Author: Mark Struberg <[email protected]>
AuthorDate: Sun Feb 28 19:12:08 2021 +0100

    NotificationManager as final blocks TomEE
    
    Not a fan of final classes. We could have used a special variant
    for EAR deployments in TomEE to avoid complicated handing in OWB itself.
    Better now than never.
    Also remove unused context handling
---
 .../src/main/java/org/apache/webbeans/event/NotificationManager.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
 
b/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
index 3ad6ce0..04732a9 100644
--- 
a/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
+++ 
b/webbeans-impl/src/main/java/org/apache/webbeans/event/NotificationManager.java
@@ -99,7 +99,7 @@ import static java.util.Collections.emptyList;
 import static java.util.concurrent.CompletableFuture.completedFuture;
 import static java.util.stream.Collectors.toMap;
 
-public final class NotificationManager
+public class NotificationManager
 {
     private final Map<Type, Set<ObserverMethod<?>>> observers = new 
ConcurrentHashMap<>();
     private final WebBeansContext webBeansContext;
@@ -1132,7 +1132,6 @@ public final class NotificationManager
     {
         //X TODO set up threads, requestcontext etc
         final ContextsService contextsService = 
webBeansContext.getContextsService();
-        contextsService.getCurrentContext(RequestScoped.class);
         contextsService.startContext(RequestScoped.class, null);
         try
         {

Reply via email to