> [junit4] ERROR 3.81s J2 | TestDirectoryTaxonomyWriter.testConcurrency > <<< > [junit4] > Throwable #1: java.lang.NoSuchMethodError: > java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
Sorry about the delay. This indicates your code was compiled with JDK1.8 but is executed with Java < 1.8. This method's signature used to be an interface, but is a covariant pointing at a specialized subclass in 1.8. You need to compile the code with the version of Java you intend to run with. Things will in general work if you compile with an older version and try to run with a newer version but not the other way around. You can cross-compile with javac from a newer version of the JDK to an older version but you'd have to specify bootclasspath to the older version anyway (bytecode/source flag in javac is not enough) so there's really no sensible reason to do it in the first place. Dawid --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
