Java-出現The source attachment does not contain the source for the file xxx class

我是在想看看Arrays.sort()源碼的時候遇到這個問題的,然後調試好了之後我不會再調試到錯誤的時候,所以網上隨便找了一張差不多的錯誤圖。 調試方法:點 Change Attached Source ,在External location中 設置 External File 路徑爲jdk目錄下的 src.zip,如果還是不行,建議重啓eclipse試試。
相關文章
相關標籤/搜索