I look through the code base (~ 20K LOC) and try to determine how to transfer it from 1.4.2 to 5. Obviously, this is not a night project and the suggestion I received is to write new code against Java 5 and transfer the old code to the doll . In addition, I am not an expert in the new Java 5 features (i.e., I know them, but I never wrote for production use).
My questions:
What Java 5 features are commonly used in production code? (i.e. generics, auto-boxing, etc.) Are there any features that should be avoided / not considered best practices?
What are the best refactoring strategies I can use to migrate a database of this size? (i.e., make changes to the classes one at a time only when the class is edited, etc.) The goal is to reduce the risk based on the code. The limitation is resources for refactoring.
Any advice is appreciated - thanks in advance.
UPDATE - the year is too late, but better late than never? =)
Thanks for all the comments - many great points of view. In the life of a software developer, there will always be projects that you are trying to complete, but you will never get around because of something more “urgent”.
Regarding the use of Java 5 (at the time), this was what was required in the client work environment, so we did not use Java 6.
, , - , , , , . , , . ; , , , , .
, , .