Hi,

I am trying to fix "commit-validation" test that (among other things) ensures some consistency in registration layers, in particular order of registrations in MIME Lookup.

The explanation got terribly long, so I put up a Wiki page, see https://cwiki.apache.org/confluence/display/NETBEANS/File+Ordering+Change+proposal for full details.

Short summary:
- there's NO WAY how to register a service in Editors/ (unspecified mimetype), that would pass current commit-validation - the unspecified mimetype ("") was specifically designed to define universal services, for all editors (without that, this is what the entire MIME inheritance is about) - once some obscure module registers a service in "" MIME type, it is likely to force all distribution modules to use positions in their registrations from that time onwards.

POSSIBLE SOLUTIONS:
* Change test
* Define positions in the whole codebase + maintain
* Improve FileUtil.getOrder() contract

Again, please see https://cwiki.apache.org/confluence/display/NETBEANS/File+Ordering+Change+proposa for all the details.

Relevant PRs and branches:
* https://github.com/apache/netbeans/pull/2359
* https://github.com/apache/netbeans/pull/2360
* https://github.com/apache/netbeans/compare/master...sdedic:origin/bugfix/commitvalidation-fixes3

Please share your thoughts, help me select (or discover) the best (or at least effective) solution.

Thanks,
-Svata

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Reply via email to