Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

From Java 1.4 to Java 6: any automated tool to update legacy code?

Tags:

java

Our system will go through a platform upgrade that includes the replacement of Java 1.4 with Java 6.

Ideally, we would like to use an automated tool to introduce generics and enumerations to the code wherever possible and then, obviously, we would review the changes. Is there any tool that you would recommend for this?

like image 360
b.roth Avatar asked Feb 23 '10 12:02

b.roth


1 Answers

an automated tool to introduce generics and enumerations to the code wherever possible

This kind of tool is known as a "programmer". When it's available in fully automated form, you'll be out of a job (and probably spend your days as an amusing distraction to your new robotic overlords).

Seriously, this is way, way beyond what can be done automatically, especially the introduction of enumerations. The Generic type parameter for collections can perhaps be derived from context, but only for simple cases.

like image 135
Michael Borgwardt Avatar answered Sep 26 '22 01:09

Michael Borgwardt