Skip to content
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

Constant/expression in step priority causes missing step candidates #13

Open
rimesc opened this issue Jun 1, 2014 · 0 comments
Open

Comments

@rimesc
Copy link
Contributor

rimesc commented Jun 1, 2014

The code for parsing the priority attribute of the JBehave java annotations assumes that the value is an integer literal. Some of our code uses constants or simple expressions based on constants. When the plugin encounters one of these, it throws a ClassCastException (which gets swallowed and never appears to the user) and stops parsing the file. The remaining steps are treated as missing.

Realistically, I don't think there's an easy way to evaluate the priority in these cases without involving the java compiler, but an improvement would be to use the default priority (or none at all) and at least parse the rest of the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant