C
Collin VanDyck
Hello!
This is a curiosity which I cannot off the top of my head explain. In a
very simple way, I have one class that implements an interface which
defines a static final constant; we'll call that constant "DB_VERSION".
My class that implements this interface explicitly references this
DB_VERSION and uses it in its instance methods.
If I make a change to that interface, incrementing the DB_VERSION,
apparently my ant javac task will recompile the interface correctly, but
at runtime the class that implemented the interface will still be using
the older value for DB_VERSION.
I can, of course, fix this by cleaning out the previous build files, but
that takes a while.
Is there a setting I can set on javac to find this dependency between my
object and the interface and compile both?
Thanks
Collin
This is a curiosity which I cannot off the top of my head explain. In a
very simple way, I have one class that implements an interface which
defines a static final constant; we'll call that constant "DB_VERSION".
My class that implements this interface explicitly references this
DB_VERSION and uses it in its instance methods.
If I make a change to that interface, incrementing the DB_VERSION,
apparently my ant javac task will recompile the interface correctly, but
at runtime the class that implemented the interface will still be using
the older value for DB_VERSION.
I can, of course, fix this by cleaning out the previous build files, but
that takes a while.
Is there a setting I can set on javac to find this dependency between my
object and the interface and compile both?
Thanks
Collin