Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
Java 8 redefines the method keySet() on ConcurrentHashMap to return a narrower type than the standard return type given in the Map interface. If the code is compiled in Java 8 and then run under Java 7 this causes linking issues.
Avoid these issues by always declaring variables in terms of the interface ConcurrentMap
Attachments
Issue Links
- is cloned by
-
QPID-6412 Declare variables as ConcurrentMap not ConcurrentHashMap to avoid issues after compiling on Java 8
- Resolved