qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-6014) [Java] Declare variables as ConcurrentMap not ConcurrentHashMap to avoid issues afetr compiling on Java 8
Date Mon, 25 Aug 2014 15:56:00 GMT

     [ https://issues.apache.org/jira/browse/QPID-6014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Godfrey updated QPID-6014:
------------------------------

    Fix Version/s:     (was: 0.31)
                   0.30

> [Java] Declare variables as ConcurrentMap not ConcurrentHashMap to avoid issues afetr
compiling on Java 8
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6014
>                 URL: https://issues.apache.org/jira/browse/QPID-6014
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker, Java Client, Java Common
>            Reporter: Rob Godfrey
>            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.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message