Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in revapi-java 0.11.* with FieldMovedInHierarchy #53

Closed
surli opened this issue Dec 15, 2016 · 3 comments
Closed

Bug in revapi-java 0.11.* with FieldMovedInHierarchy #53

surli opened this issue Dec 15, 2016 · 3 comments

Comments

@surli
Copy link

surli commented Dec 15, 2016

Hi,

i'm setting up revapi for Spoon project through maven plugin and it seems there's a bug with FieldMovedInHierarchy on version 0.11.1 and 0.11.2 of revapi-java. Everythings work fine with version 0.10.2.

I obtain the following error when executing check goal:

Exception in thread "main" java.util.ServiceConfigurationError: org.revapi.java.spi.Check: Provider org.revapi.java.checks.fields.FieldMovedInHierarchy could not be instantiated [...]
Caused by: java.lang.NoSuchFieldError: FIELD_INHERITED_NOW_DECLARED at org.revapi.java.checks.fields.FieldMovedInHierarchy.(FieldMovedInHierarchy.java:17)

The full stack trace is available on this gist.

Here's my maven config for revapi:

    <plugin>
        <groupId>org.revapi</groupId>
        <artifactId>revapi-maven-plugin</artifactId>
        <version>0.6.1</version>
        <dependencies>
          <dependency>
            <groupId>org.revapi</groupId>
            <artifactId>revapi-java</artifactId>
            <version>0.11.2</version>
          </dependency>
        </dependencies>
        <executions>
          <execution>
            <id>revapi-check</id>
            <goals>
              <goal>check</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <analysisConfiguration>
            {
              "revapi": {
                "java": {
                  "filter": {
                    "packages": {
                      "regex": true,
                      "include": ["spoon\\..*"],
                      "exclude": ["spoon\\..*\\.test(\\..*)?"]
                    }
                  }
                }
              }
            }
          </analysisConfiguration>
        </configuration>
      </plugin>
@metlos
Copy link
Member

metlos commented Dec 15, 2016

Hi, this is because of #12. Do things work when you use the revapi-maven-plugin 0.7.0?

@surli
Copy link
Author

surli commented Dec 15, 2016

Yes it works. My bad I didn't check a new version was released. Thanks!

@metlos
Copy link
Member

metlos commented Dec 17, 2016

I'm closing this as things kinda work. If you discover any other problems, don't hesitate raise a new issue.

@metlos metlos closed this as completed Dec 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants