[josm-dev] Add nodes and ways via remoteControl

Sebastian Klein bastikln at googlemail.com
Sun Aug 22 22:11:14 BST 2010


Bodo Meissner wrote:
> -----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.

The getVersion() method is only needed for upwards compatibility. 
Dependency on new features can be achieved by reading remotecontrol's 
svn version.

But I guess it is more consistent the way you did it, so why not...


Sebastian



More information about the josm-dev mailing list