Hello,
is there a tool which can help to transform java source code from/to 1.4
to/from 1.5 ? For binary 1.5 to 1.4 there is retroweaver, but is there
a source code version?
The main concern is about generics. How to automatically add/remove them.
TIA
Oliver Wong - 08 Nov 2006 22:18 GMT
> Hello,
>
[quoted text clipped - 3 lines]
>
> The main concern is about generics. How to automatically add/remove them.
Automatically removing them (and adding the casts where nescessary)
should be easy, but automatically adding them sounds difficult enough that I
wouldn't be surprised if no commercial tool exists to do this for you.
- Oliver
Benno Baumgartner - 09 Nov 2006 17:01 GMT
> Hello,
>
[quoted text clipped - 5 lines]
>
> TIA
Hi
Have a look at Eclipse. There is a refactoring called 'Infer Generic
Type Arguments':
http://help.eclipse.org/help31/index.jsp?topic=/org.eclipse.jdt.doc.user/tasks/t
asks-226.htm
. Also eclipses Clean Up wizard can add some annotations for you and
convert for loops to enhanced for loops. http://www.eclipse.org/
HTH
Benno