JBehave
  1. JBehave
  2. JBEHAVE-1024

Use of constant or expression in step priority results in missing step candidates

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Eclipse Support
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The code for parsing the priority attribute of the JBehave annotations assumes that the value is an integer literal. When it encounters a value that is a constant or expression, it stops parsing the file and any steps that appear after the problematic one are missed.

      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 steps in the file.

        Activity

        There are no entries against this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Chris Rimes
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: