Skip to content

Prevent duplicate glue paths #632

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from

Conversation

martykube
Copy link
Contributor

When RuntimeOptionsFactory builds RuntimeOptions if the target class is a member of a class hierarchy contained in one package the glue path with have multiple entries for the containing package. This will then cause a "duplicate step definition" error during duplicated scans of the glue path (see #622).

This pull request aims to eliminate duplicate glue paths by changing the type of RuntimeOptions.glue from a list to a set. This will enforce uniqueness, always.

The main change is RuntimeOptions.glue. The remaining changes are to update the signature of Backend.loadGlue() to accept a set (instead of a list) of glue paths.

@ffbit
Copy link
Contributor

ffbit commented Nov 14, 2013

Relates to #608

@ffbit
Copy link
Contributor

ffbit commented Nov 23, 2013

@martykube
There is a comment left on this issue in the #633 thread.

@brasmusson
Copy link
Contributor

Closed by 3b41a05 (the problem is fixed by #636)

@brasmusson brasmusson closed this Jun 26, 2014
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants