Community
Participate
Working Groups
Short example : We are publishing an (very simple ;-)API like interface public interface Old { public static final int Constant = 42; } Due to cosmetical reasons and code conventions, this interface is renamed to INew public interface INew { public static final int Constant = 42; } Since we do not want to break old clients completly, we define the old interface in terms of the new and deprecate it : /** * @deprecated */ public interface Old extends INew { } Now our "client" : public class Test { public static void main(String[] args) throws Exception { System.out.println(INew.Constant); System.out.println(Old.Constant); } } The eclipse compiler does not recgonize the deprecated use of the interface Old, but the standard javac does ...
Good find, and excellent small test case.
Fixed.
Verified.