FELIX-6736 Emit properties in alphabetical order#345
FELIX-6736 Emit properties in alphabetical order#345kwin wants to merge 1 commit intoapache:masterfrom
Conversation
|
@cziegeler Please have a look, this test fails without sorting the keys first. |
bf51840 to
ab01dae
Compare
| * under the License. | ||
| */ | ||
| @Version("1.0.0") | ||
| @Version("1.1.0") |
There was a problem hiding this comment.
I would like to increase the minor version here in order to ease depending on this fixed version.
There was a problem hiding this comment.
As you only changed internal behavior, package versions are not for "easing" anything but to allow semantic versioning so increasing the minor is wrong here.
| @Version("1.1.0") | |
| @Version("1.0.1") |
There was a problem hiding this comment.
This is a potentially backward incompatible semantical change (affecting consumers). Just a change which is not detected by baselining because the method signature did not change. Therefore adjusting the minor version is IMHO the right thing to do!
There was a problem hiding this comment.
If it affects consumers you need a major version bump.
ab01dae to
fdaf9c6
Compare
|
It is expected that the tests fail, the configuration object preserves insertion order - if you read and write the same feature without changes, it should be identical (maybe minus whitespaces, indention). |
|
I just aligned with the logic from . But I am also fine with making this an opt-in behaviour. |
|
ConfigurationHandler is not really a public API. The configuration writer is used for the various feature model implementations and it would be pretty annoying if it would destroy out of the sudden the order of things. So yes, opt-in makes sense to me. |
No description provided.