Issue Details (XML | Word | Printable)

Key: CLI-177
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Joerg Schaible
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons CLI

OptionBuilder is not reseted in case of an IAE at create

Created: 12/Mar/09 11:02 PM   Updated: 16/Mar/09 07:31 AM
Return to search
Component/s: Options definition
Affects Version/s: 1.1
Fix Version/s: 1.2

Time Tracking:
Not Specified

File Attachments:
  Size
File Licensed for inclusion in ASF works CLI-177.diff 2009-03-12 11:04 PM Joerg Schaible 3 kB

Resolution Date: 16/Mar/09 07:31 AM


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible added a comment - 12/Mar/09 11:04 PM
Patch and unit test.

Henri Yandell added a comment - 16/Mar/09 07:31 AM
Applied to 1.2.