在eclipse 3.2中使用JDK1.6 奇怪的Bug
(A peculiar bug in Eclpse 3.2 using JDK 1.6)
心血來潮裝上了Sun的JDK 1.6來玩玩,在eclipse中建立專案。恰巧之前在良葛格的JAVA學習筆記中獲取了不少JDK1.6中新功能的知識(真是感謝),想來個牛刀小試一番。可是卻發現了一個小小的問題:System.console()方法取回來的是null,而非預期的java.io.Console物件。

Fortuitously,I've read knowledges abuot the new function in JDK 1.6 at caterpillar's web site(written in chinese)(and thanks him a lot). But when I ran the method System.console() it returned 'null' ,not the anticipant object of java.io.Console.
那真的是Eclpse的問題了~
It jus a little bit crappy. Is it a problem of JDK? And use Sun's java.exe in the JDK . Humm..
Magically,It's OK.
So,that's a bug of Eclipse..............
沒有留言:
張貼留言