Skip to content

Code compiled with error-prone 2.0.15 is compiled against Guava 20 #492

@pstibrany

Description

@pstibrany

We have code which is using older version of Guava library (17). We use error-prone to compile it. Since updating to error-prone 2.0.15, we are running into this exception: java.lang.NoSuchMethodError: com.google.common.collect.Sets$SetView.iterator()Lcom/google/common/collect/UnmodifiableIterator;

It turns out that this method has been added in Guava 20: https://github.com/google/guava/blob/master/guava/src/com/google/common/collect/Sets.java#L667 (iterator method has been there before but has been inherited from super-class, with different return type)

While our project doesn't use Guava 20, latest error-prone does, which leads us to believe that our code has been compiled against this version. :-(

Expected: compile against jar files provided in our code, not against internal error-prone dependency.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions