gumtree icon indicating copy to clipboard operation
gumtree copied to clipboard

java.lang.NoSuchMethodError

Open SaliZumberi opened this issue 8 years ago • 6 comments

I wanted to use the GumTree API example and got this issue:

java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator;

is there any solution to this porblem here:

SaliZumberi avatar May 14 '18 21:05 SaliZumberi

Can I have more information on what you were trying to do in order to be able to reproduce the bug?

Best regards.

jrfaller avatar May 15 '18 06:05 jrfaller

got this issue when running: Run.initGenerators(); String file1 = "./data/java_test_data/v1.java"; String file2 = "./data/java_test_data/v2.java"; ITree src = Generators.getInstance().getTree(file1).getRoot(); ITree dst = Generators.getInstance().getTree(file2).getRoot(); Matcher m = Matchers.getInstance().getMatcher(src, dst); // retrieve the default matcher m.match(); m.getMappings(); // return the mapping store

with these dependencies in pom

    <dependency>
        <groupId>com.github.gumtreediff</groupId>
        <artifactId>core</artifactId>
        <version>2.1.0</version>
    </dependency>
    <dependency>
        <groupId>com.github.gumtreediff</groupId>
        <artifactId>client</artifactId>
        <version>2.1.0</version>
    </dependency>

SaliZumberi avatar May 15 '18 10:05 SaliZumberi

Could you try with the develop version? I think this bug was due to a transitive dependency to guava that got fixed sometime ago.

I will try to refresh the version on Maven soon.

jrfaller avatar May 15 '18 15:05 jrfaller

no i tried only with maven dep..

will try with dev version

SaliZumberi avatar May 15 '18 20:05 SaliZumberi

any news with the develop version?

jrfaller avatar Dec 06 '18 08:12 jrfaller

I can confirm that this issue has been addressed (see #121).

jose avatar Jan 15 '19 19:01 jose