[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
javac deprecation not finding all deprected calls
Anyone run into this problem before? I could not find anything in the
archives. Where depending on the order of compilation javac may not find a
call to a deprecated method? Turns out we found a significant number of
calls to deprecated methods within our own code base when certain files were
recompiled after the remainder of the code base. It seems that javac will
only create a deprecation warning on a call to a deprecated method if the
claass that is making the call to the deprecated method is compiled after
the class with the deprecated method. This does not seem right!
OK, just updated right before I was sending this out! This was a known bug
at Sun in 1.1 and was supposedly resolved in 1.3, however we have been
compiling with 1.4 for quite some time. Has the bug been reintroduced?
Thanks
John