Keith Wall created QPID-6412:
--------------------------------

             Summary: Declare variables as ConcurrentMap not ConcurrentHashMap 
to avoid issues afetr compiling on Java 8
                 Key: QPID-6412
                 URL: https://issues.apache.org/jira/browse/QPID-6412
             Project: Qpid
          Issue Type: Improvement
          Components: Java Broker, Java Client, Java Common
            Reporter: Keith Wall
            Assignee: Andrew MacBean
             Fix For: 0.30


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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to