commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <>
Subject [jira] Updated: (CLI-195) Fix some iterator boundary check bugs.
Date Tue, 15 Jun 2010 17:23:22 GMT


Emmanuel Bourg updated CLI-195:

        Fix Version/s:     (was: Nightly Builds)
    Affects Version/s:     (was: Nightly Builds)

> Fix some iterator boundary check bugs.
> --------------------------------------
>                 Key: CLI-195
>                 URL:
>             Project: Commons CLI
>          Issue Type: Bug
>          Components: CLI-2.x
>         Environment: JDK 5
>            Reporter: Haixing Hu
>            Priority: Critical
>         Attachments: cli2-jdk1.5-patch-with-boundary-fix.patch
>   Original Estimate: 0.17h
>  Remaining Estimate: 0.17h
> This patch can be applied to the current svn checked out version of cli2 (2010-Feb-9th).
> It will make the cli2 compatible to JDK 5 generic type, eliminating all compiling warnings,
> and fix some minor but critical iterator boundary check bugs.
> The bug could be found in the following way: creating some Option object WITHOUT description,
> and use a HelpFormatter to print the helping message, then a NoSuchElementException will
be thrown.
> This is because the HelpFormatter.printHelp() did not correctly check the empty status
of descriptionIterator.
> And moreover, some implementation of Option.processParent() method did not check the
empty status
> of the argument "ListIterator<String> arguments".

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message