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

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