What If module `A` depends on an inline function o...
# announcements
n
What If module
A
depends on an inline function of module
B
? If both modules are on the classpath as seperate .jars, you'd expect that a change to an inline function in module
B
only affects, well, module
B
. But thats not the case, because the functions are inlined in module
A
. A change to an inline function in module
B
would not have any effect because the old version of the function is still inlined in module
A
j
Yep! The argument here is exactly what @orangy said, though. The old inlined code has to use public API so someone could have manually written the same thing.
(And that restriction tends to cover you about 98% of the time into not doing anything stupid.)