Jump to content
Excelsior Forums
Sign in to follow this  

Re-Compiling of changed classes in DLLs

Recommended Posts


as the manual said I need to recompile a DLL A and all following DLLs B,C,D.... if some jars changed in DLL A. My question is, what is understood under the term "jar is changed"? Does it have consequences if I add a new class or change the implementation of an existing class in the DLL A without changing the interfaces in it which classes from jars in DLLs B,C,D... are using? Must I really recompile A,B,C,D with such a minor change?

Share this post

Link to post
Share on other sites


Any component (DLL or EXE), for example, B, that imports changed component A should be recompiled as well, even if the interface of classes from A was not changed.

It is required for several reasons:

1) The implementation of some method from A was inlined into B. The code of the method could be changed, while the inlined copy of the method inside B will not be updated without recompilation of B.

2) The interface between B and A is not symbolic. The code in B references members from classes, compiled into A by hardwired offsets. So, for example, adding a private field into class from A can cause outdated fields offsets in the code of B.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this