什么时候eclipse才能支持jdk1.5

Posted by 猪头小队长 | 程序设计 | Friday 22 October 2004 14:02
因为要用到线程池等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);
}
}
但是在编译的时候出错:
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的最新消息

[@more@]

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word