Skip to main content

Refix of 6823064: copy(mainConfig, mainConfig) and default values...

2 replies [Last post]
fda
Offline
Joined: 2005-05-27
Points: 0

Can you look at the new variant of the fix.
https://jtharness.dev.java.net/source/browse/jtharness?view=rev&rev=1534

The question class has been extended with new method reload():
/**
* This methods invokes save(Map), clear() and load(Map).
* These actions will lead to the default value (if set) will become
* the question value.
*/
public void reload() {
Map map = new java.util.HashMap();
save(map);
clear();
load(map);
}

This method will be invoked only for those questions which are suspicious for being changed. The same action is performed when copy(mainConfig, mainConfig) is invoked, but for the entire set of interview questions.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bkurotsu
Offline
Joined: 2004-12-13
Points: 0

Ok, I think it is a reasonable attempt.

Integrated. See trunk rev 1576.

fda
Offline
Joined: 2005-05-27
Points: 0

thanks!