You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2021/04/26 12:33:39 UTC

[GitHub] [celix] tira-misu commented on issue #339: Bundle compatibility between celix version?

tira-misu commented on issue #339:
URL: https://github.com/apache/celix/issues/339#issuecomment-826798409


   Hi Pepijn,
   
   Thanks for the hint with the C++ header only API. This was indeed the missing link and it helps to be binary compatible with old versions. I had a deep dive in to celix sources (ok - it was more or less only scrathing at the surface) and found the incompatible change between 2.1 and 2.2. Old celix bundles creates an own dependency manager and new celix gives the dependency manager to the bundle. So you set the old C interface to deprecated. Changing the implentation of the deprecated interface to the new behaviour in celix 2.2 solves the issue. Bundles build with 2.1 can now be loaded with 2.2 celix runtime. All components with interfaces will be found and linked to dependent bundles. 
   
   I will make a pull request. Perhaps I have overlooked something. 
   
   In general: Binary compatibility should be a main goal of a modular software framework. In particular if major version did not change. What about to implement a component test for this? I would like to offer a contribution of such a test.
   
   regards
   Gunter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org