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

Andy Seaborne closed JENA-667.
------------------------------


> Build breaks when compiling with JDK 1.8 - Modified Map Implemententation
> -------------------------------------------------------------------------
>
>                 Key: JENA-667
>                 URL: https://issues.apache.org/jira/browse/JENA-667
>             Project: Apache Jena
>          Issue Type: Improvement
>          Components: Build
>    Affects Versions: Jena 2.11.1, Jena 2.11.2
>         Environment: java version "1.8.0"
> Java(TM) SE Runtime Environment (build 1.8.0-b132)
> Java HotSpot(TM) 64-Bit Server VM (build 25.0-b70, mixed mode)
>            Reporter: Christoph Emmersberger
>            Assignee: Andy Seaborne
>             Fix For: Jena 2.11.2
>
>         Attachments: JENA-667.patch
>
>
> When running the build with JDK 1.8 (Java 8), the following compilation error 
> occurs:
> {code}
> public class OneToManyMap<From, To> implements Map<From, To> {
>     ...
>     public void remove( Object key, Object value ) {
>         List<To> entries = m_table.get( key );
>         if (entries != null) {
>             entries.remove( value );
>             
>             if (entries.isEmpty()) {
>                 m_table.remove( key );
>             }
>         }
>     }
>     ...
> }
> {code}
> Seems like the underlying Map implementation has been modified to provide a 
> boolean return statement as of JDK 1.8
> {code}
>     public boolean remove(Object key, Object value) { 
>         ...
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to