From 2426b34a516f746b126540aa7bb624df2dd6574c Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Fri, 15 Oct 2021 09:00:40 +1000 Subject: [PATCH] Issue #6980 mark the field as accessible (#6981) 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);