I have a library which has shipped (internally, but still shipped), and I would like to rename a public class within the library.
What I would like is a way to make sure that
- client code keeps on working
client code gets a deprecation warning on compilation on use of the class name
Is there any way to alias the class in some way, which will exhibit the above properties?
- Is there any way to avoid this problem in the future (other than making sure classes are named and spelled properly?) Note that I would like to keep a public constructor, so working with interfaces will not fix all my problems.