这些代码是以前的同事留下来的,应该编译能通过的。。
现在那个同事走了,留下了源代码和一个jar包
这个系统有个bug,需要debug下,我就想加点print语句在源代码中。。
结果发现我用elipse编译不过去出现了许多莫明奇秒的错误,这是其中一个错误:The method add(int, Object) in the type List is not applicable for the arguments (int)其相关的源代码如下:
List existProductLineId = new ArrayList();
ResultSet rs ;
existProductLineId.add(rs.getInt(1));我以前以为jdk版本不对,解压jar包,找文件META-INF/MANIFEST.MF,其内容如下:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.0
Created-By: 1.5.0_09-b03 (Sun Microsystems Inc.)
Main-Class: com.oracle.bjcce.migration.TasksManager
Class-Path: ./o10jdbc14.jar 
 ./mysql-connector-java-3.1.10-bin.jar 看来是jdk1.5, 我下载了jdk1.5,结果还是这个错误。。
我又下载了jdk1.6,结果发现还是这个错误。。
怎么办啊??