Deprecated Main class cucumber.api.cli.Main
See original GitHub issueWhen launching my feature files using the plugin, I get a warning in the console stating “You are using deprecated Main class. Please use io.cucumber.core.cli.Main”.
This has been changed just about a month ago (see https://github.com/cucumber/cucumber-jvm/pull/1670). The old class is currently a delegate to the new class, so this doesn’t break anything (yet?), but the warning is a little annoying. From my perspective, this seems like a pretty easy thing to fix for someone who knows the plugin’s code, but since that’s not the case for me, I decided to open this issue instead.
//edit:
After a quick repo search, it looks like this class is using the CUCUMBER_API_CLI_MAIN constant from this class to get the FQN for the Main class. I’m guessing updating this constant should fix the issue. However, I don’t really have any experience developing eclipse plugins and since I don’t want to push any changes based on guesses, I’ll leave this to someone else.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:12 (4 by maintainers)
Top Related StackOverflow Question
The way this is generally handled is you try to load the new class in the new package, if it fails with a class not found exception you load the old class.
If we simply change this, this wil break for everyone using an older cucumber-version so it is not that easy as it seems.