commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "markus k (JIRA)" <>
Subject [jira] Created: (CLI-211) Cloning Option is now breaking our code
Date Thu, 28 Oct 2010 13:54:24 GMT
Cloning Option is now breaking our code

                 Key: CLI-211
             Project: Commons CLI
          Issue Type: Bug
          Components: CLI-1.x
         Environment: win 2000
            Reporter: markus k
            Priority: Minor
             Fix For: 1.2

In out code we create new options and put them in a member variable of a class like this:

Option valuesOption = options.addOption("opt1", true, "Description.").getOption("opt1");
this.memberOpt = valuesOption;

Later in our code we requested the value with this.memberOpt.getValue(), which worked good
on 1.1.
With 1.2 all of our code does not work anymore using this mechanism.
I guess this happens due to the change of Revision 667565 which now clones the Option.
This is not got, since all references to the original options given to the parser now do not
get their values anymore.

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

View raw message