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

java.lang.NoSuchMethodError: cucumber.api.CucumberOptions.snippets()Lcucumber/api/SnippetType; #644

Closed
alexec opened this issue Jan 10, 2019 · 6 comments
Labels

Comments

@alexec
Copy link

alexec commented Jan 10, 2019

Karate has shadow classes for Cucumber core classes but is not ABI compatible (as opposed to API compatible) with them.

Please add the above method.

@alexec
Copy link
Author

alexec commented Jan 10, 2019

Note, you can find duplicate classes using mvn com.ning.maven.plugins:maven-duplicate-finder-plugin:1.0.4:check

@alexec
Copy link
Author

alexec commented Jan 10, 2019

As an aside, you can pretty much guarantee this kind of problem by shadowing classes.

@ptrthomas
Copy link
Member

@alexec unlikely - as we had multiple rounds of testing, so please follow this process:
https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue

@alexec
Copy link
Author

alexec commented Jan 10, 2019

Sorry Peter, I'm talking generally. I've seen so many hard to diagnose bugs with shadow classes, that I expect to find them when they are used. Like this ticket for example.

@ptrthomas
Copy link
Member

@alexec hear ya - there's a very good reason for these "shadow" classes that exist: #444 (comment)

also we did trim out annotation methods we did not need such as "snippets". FWIW we have had multiple rounds of beta releases to the community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants