You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by David Bosschaert <da...@gmail.com> on 2015/07/15 09:42:25 UTC
Resolver does not compile with Java versions pre 8
Hi all,
Just noticed that the Felix Resolver does not compile if you try to do
this with a pre-Java 8 compiler. I'm getting the following error:
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/David/checkouts/felix/resolver/src/main/java/org/apache/felix/resolver/util/ArrayMap.java:[100,46]
<anonymous org.apache.felix.resolver.util.ArrayMap$1$1> is not
abstract and does not override abstract method remove() in
java.util.Iterator
[ERROR] /Users/David/checkouts/felix/resolver/src/main/java/org/apache/felix/resolver/util/ArrayMap.java:[131,52]
<anonymous org.apache.felix.resolver.util.ArrayMap$2$1> is not
abstract and does not override abstract method remove() in
java.util.Iterator
If I compile with Java 8 it all works (which is a little strange,
because I would have expected the Maven compiler settings to govern
this).
Guillaume, I guess this might be related to your recent changes in the
resolver area. Could you please take a look?
Cheers,
David