-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Json Formatter in 1.1.3 giving Array Out of Bounds exception #476
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
Comments
I suspect this is a regression introduced by ba049aa. Can you create a test that reproduces this? |
I will try to create a test tonight. I noticed that the commit you mentioned seemed to go into 1.1.2 which I can run without any issue. So I was thinking it was probably one of the commits in 1.1.3 that caused the regression.... SInce this specifically dealt with the json formater I suspect it is the problem. If I do not use the json formater then the tests run fine and the html report looks good. Thanks |
The test has been adjusted to show the issue in this PR |
The JSONFormmater has no element to add the Before Hook to... since the senario has not beed added yet. Moving Before Move
After Move
in CucumberScenario.java. This fixes the issue with the JSONFormatter but causes issue in the JUnit Reporter. So it looks like one of the two will need to be updated to fix the issue. |
This issue seems related to #447 |
I think we have the same issue at our place, @aslakhellesoy : does this PR fix the bug ? |
I had to make a SNAPSHOT-build of cucumber-jvm/gherkin in order to fix our builds. But as we're using the Maven-Release-Plugin, which forbids making releases with SNAPSHOT-dependencies, we can't do legal releases anymore. When will this bugfix go into a release? |
This might be related to cucumber/gherkin#252 as well. |
Isn't this fixed in 1.1.4 and/or 1.1.5-SNAPSHOT? |
Yes, it is fixed in 1.1.4 (which is showed by the merge of #478). |
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. |
When I run a test with a Before Hook, I am getting an Array out of Bounds exception.
The same feature and hook worked with Cucumber JVM 1.1.1 and Cucumber JVM 1.1.2
When I remove the json format from the scenario, the scenario runs.
The text was updated successfully, but these errors were encountered: