Using Map interface to get around ConcurrentHashMap.keySet() bug with Java 8
See https://gist.github.com/AlainODea/1375759b8720a3f9f094 for details Conflicts: jetty-servlet/src/main/java/org/eclipse/jetty/servlet/listener/ELContextCleaner.java
This commit is contained in:
parent
3527c6a71b
commit
e2a20e0465
|
@ -20,6 +20,7 @@ package org.eclipse.jetty.servlet.listener;
|
|||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
import javax.servlet.ServletContextEvent;
|
||||
|
@ -98,7 +99,7 @@ public class ELContextCleaner implements ServletContextListener
|
|||
if (!properties.isAccessible())
|
||||
properties.setAccessible(true);
|
||||
|
||||
ConcurrentHashMap<Class<?>, Object> map = (ConcurrentHashMap<Class<?>, Object>) properties.get(null);
|
||||
Map map = (Map) properties.get(null);
|
||||
if (map == null)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in New Issue