Skip to content

#154. Fixed the issue causing scala to break #155

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

Merged
merged 1 commit into from
Jan 21, 2012

Conversation

teigen
Copy link
Contributor

@teigen teigen commented Jan 21, 2012

This fix changes ClasspathResourceLoader.instantiateSubclasses to silently ignore classes of correct type but with wrong constructors. This was not directly a scala issue but more of a consequence of how scala represents certain things in bytecode (in this case, objects, even those defined inside methods will end up as classes)

…ls ClasspathResourceLoader().instantiateSubclasses which didn't check if the class had a valid constructor given the arguments. ScalaDslTest.scala holds multiple internal ScalaDsl instances which are compiled to classes implementing ScalaDsl but with no valid constructor. These were being picked up by the ClasspathResourceLoader causing the RunCukesTest to fail at load time
aslakhellesoy added a commit that referenced this pull request Jan 21, 2012
#154. Fixed the issue causing scala to break
@aslakhellesoy aslakhellesoy merged commit 34814b4 into cucumber:master Jan 21, 2012
@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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants