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试试。

发布了31 篇原创文章 · 获赞 0 · 访问量 338

猜你喜欢

转载自blog.csdn.net/qq_36360463/article/details/104141899