A
Andy Dingley
I have a large project - several hundreds of classes. If a single
..java file is changed, then obviously the compiled class is changed
too. However I'm not sure how many other classes would be affected by
this and would also change when recompiled.
By "will change", I'm thinking of a pragmatic meaning here, somewhere
between "the bytecode will be different" and "the program will be in
error if you mix the compiled classes by deploying too few class
files". I'm not interested in changes that merely cause recompilation,
only the end result.
What changes to source would cause dependent classes to change? Is it
as simple as "anything in a signature, nothing outside a signature" ?
Does the way in which a class is imported affect that dependent class'
sensitivity to changes ?
Are these changes transitive? If A depends on B which depends on C,
will changing C "significantly" also cause A to change ?
I appreciate this is a potentially complex question. If there are any
simple rules that can be applied, I'd love to hear them.
Thanks
..java file is changed, then obviously the compiled class is changed
too. However I'm not sure how many other classes would be affected by
this and would also change when recompiled.
By "will change", I'm thinking of a pragmatic meaning here, somewhere
between "the bytecode will be different" and "the program will be in
error if you mix the compiled classes by deploying too few class
files". I'm not interested in changes that merely cause recompilation,
only the end result.
What changes to source would cause dependent classes to change? Is it
as simple as "anything in a signature, nothing outside a signature" ?
Does the way in which a class is imported affect that dependent class'
sensitivity to changes ?
Are these changes transitive? If A depends on B which depends on C,
will changing C "significantly" also cause A to change ?
I appreciate this is a potentially complex question. If there are any
simple rules that can be applied, I'd love to hear them.
Thanks