Issue Type: Bug Bug
Affects Versions: 3.7.4
Assignee: Unassigned
Attachments: org.jbehave.core.steps.StepsBehaviour.txt
Components: Core
Created: 19/Dec/12 3:20 PM
Description:

Unit test StepsBehaviour.shouldReportFailuresInBeforeAndAfterMethods is broken when run on JDK 7 (see stacktrace attached). With JDK 6 this error doesn't occur.

What actually breaks the test is that methods annotated with @BeforeScenario are picked in different order for the two JDK versions. This is caused by the fact that java.lang.Class.getMethods() returns methods in no particular order as clearly stated in its javadoc and probably its implementation has been changed.

The question is whether it's enough just to fix the test to enforce the order or this issue affects the framework more deeply and additional measures are needed.

Environment: uname -a
Linux somehost 3.2.0-35-generic-pae #55-Ubuntu SMP Wed Dec 5 18:04:39 UTC 2012 i686 i686 i386 GNU/Linux

java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.04.1)
OpenJDK Server VM (build 23.2-b09, mixed mode)
Project: JBehave
Priority: Major Major
Reporter: Volodymyr Sobotovych
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to