This can be done simply implementing the upcoming JSR177 and moving all deprecated class to this dedicated legacy module. Nothing tricky (appart from JSR177 implementation I mean) !
I also agree with the proposition of hazem that indicates, deprecated methods staying in core module should be modified in order to have "legacy code only". This means, code accesing the new ways of doing.
This will have positive (although minimal) performance impact for people not using deprecated API but without any sacrifice with the legacy !
Go legacy module :o) |