aspose file tools*
The moose likes Beginning Java and the fly likes use java 1.4 instead of java 1.5 for generics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "use java 1.4 instead of java 1.5 for generics" Watch "use java 1.4 instead of java 1.5 for generics" New topic
Author

use java 1.4 instead of java 1.5 for generics

sai rama krishna
Ranch Hand

Joined: May 29, 2009
Posts: 243
I have a hashmap which has username and password information.



I am reading the username and password information to send it to one other method as follows.





Challenge now I have is server is running on java 1.4 not java 1.5.
I need to modify my code to remove java 1.5 Generics and use java 1.4. How Can achieve it


Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 4179
    
  21

What you need to do is called 'cross compilation.' The compiler can do this by passing the target command flag option when compiling the code. See: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/javac.html. There are some notes on that page about cross compilation you should read.


Steve
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: use java 1.4 instead of java 1.5 for generics