From 981bb99cce4d597267dc6c32bbb0e7903127f8da Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 12 Oct 2021 21:29:23 +1000 Subject: [PATCH] Issue #6980 mark the field as accessible Signed-off-by: Olivier Lamy --- .../org/eclipse/jetty/servlet/listener/ELContextCleaner.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/ELContextCleaner.java b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/ELContextCleaner.java index 25b5d892e402..7d4ba7368c1e 100644 --- a/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/ELContextCleaner.java +++ b/jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/ELContextCleaner.java @@ -52,6 +52,8 @@ public void contextDestroyed(ServletContextEvent sce) //Get a reference via reflection to the properties field which is holding class references Field field = getField(beanELResolver); + field.setAccessible(true); + //Get rid of references purgeEntries(field);