[josm-dev] Add nodes and ways via remoteControl

Bodo Meissner bodo at bodo-m.de
Sun Aug 22 22:03:12 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 22.08.2010 22:40, schrieb Sebastian Klein:
> Bodo Meissner wrote:
>> I added a getVersion method to remotecontrol. [...] On compatible
>> extensions the minor version should be incremented, on incompatible
>> changes the major version should be incremented and the minor version
>>  set to 0.
> 
> What is the minor version good for?

When I add a method to remotecontrol I will change the minor version only. An old version of wmsplugin can still use the new version of remotecontrol.
A new version of wmsplugin that needs the new method will not accept older minor versions of remotecontrol.
When I have to do incompatible changes I will change the major version. An older wmsplugin will never try to use a new major version of remotecontrol.
That's why I implemented a == check for the major version and a >= check for the minor version.


Bodo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkxxkJAACgkQnMz9fgzDSqctnACfVSsmV+PyzMZPmH6PSke32uHb
A9sAniGZMbEuJvh+b2gYPkQGZsjvz8cb
=EZnF
-----END PGP SIGNATURE-----



More information about the josm-dev mailing list