[ 
https://issues.apache.org/jira/browse/QPID-6412?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14336485#comment-14336485
 ] 

ASF subversion and git services commented on QPID-6412:
-------------------------------------------------------

Commit 1662211 from [~k-wall] in branch 'qpid/trunk'
[ https://svn.apache.org/r1662211 ]

QPID-6412: Use ConcurrentMap interface rather than concrete class to ensure 
linking issues when running JDK 1.8 compiled code under JDK 1.7

> Declare variables as ConcurrentMap not ConcurrentHashMap to avoid issues 
> after 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
>    Affects Versions: 0.32
>            Reporter: Keith Wall
>            Assignee: Keith Wall
>             Fix For: 6.0 [Java]
>
>
> 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: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to