Uploaded image for project: 'Commons CLI'
  1. Commons CLI
  2. CLI-177

OptionBuilder is not reseted in case of an IAE at create

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: Options definition
    • Labels:
      None

      Description

      If the call to OptionBuilder.create() fails with an IllegalArgumentException, the OptionBuilder is not resetted and its next usage may contain unwanted settings. Actually this let the CLI-1.2 RCs fail on IBM JDK 6 running on Maven 2.0.10.

        Attachments

        1. CLI-177.diff
          3 kB
          Joerg Schaible

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              joehni Joerg Schaible
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: