什么时候eclipse才能支持jdk1.5
因为要用到线程池等1.5提供一些新特性,安装了eclipse的jdk1.5插件(http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-core-home/r3.0/main.html#updates)
之后,编写这样的程序:
之后,编写这样的程序:
import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TestSynchronousQueue {
public static void main(String[] args) {
SynchronousQueue sq = new SynchronousQueue();
ThreadPoolExecutor pool = new ThreadPoolExecutor(1,1,1l,TimeUnit.SECONDS,sq);
}
}
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
public class TestSynchronousQueue {
public static void main(String[] args) {
SynchronousQueue sq = new SynchronousQueue();
ThreadPoolExecutor pool = new ThreadPoolExecutor(1,1,1l,TimeUnit.SECONDS,sq);
}
}
但是在编译的时候出错:
Inconsistent classfile encountered: The undefined type parameter E is referenced from within Enum
Inconsistent classfile encountered: The undefined type parameter E is referenced from within Enum
同样的程序用命令行javac编译没有错误,所以只能暂时只使用1.5的jdk,而不使用其编译器了,至少可以先用着它的最新类库
期待eclipse的尽快发布,等待http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/?only_with_tag=JDK_1_5的最新消息
期待eclipse的尽快发布,等待http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.core/?only_with_tag=JDK_1_5的最新消息
[@more@]