eclipse下用java调试模式,点击小虫子无法正常进行

abs1285 2010-09-25 04:47:54
eclipse下用java调试模式,点击小虫子无法正常进行,并且出现调试模式显示窗口,

在URLClassLoader.class类里,让你调试,在200行 和205行,无限调试,死循环,

这是什么情况呢?

就是这个类的一个方法里:
175 /**
176 * Finds and loads the class with the specified name from the URL search
177 * path. Any URLs referring to JAR files are loaded and opened as needed
178 * until the class is found.
179 *
180 * @param name the name of the class
181 * @return the resulting class
182 * @exception ClassNotFoundException if the class could not be found
183 */
184 protected Class<?> findClass(final String name)
185 throws ClassNotFoundException
186 {
187 try {
188 return (Class)
189 AccessController.doPrivileged(new PrivilegedExceptionAction() {
190 public Object run() throws ClassNotFoundException {
191 String path = name.replace('.', '/').concat(".class");
192 Resource res = ucp.getResource(path, false);
193 if (res != null) {
194 try {
195 return defineClass(name, res);
196 } catch (IOException e) {
197 throw new ClassNotFoundException(name, e);
198 }
199
200 throw new ClassNotFoundException(name);
201 }
202 }
203 }, acc);
204 } catch (java.security.PrivilegedActionException pae) {
205 throw (ClassNotFoundException) pae.getException();
206 }
207 }
...全文
159 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
meadking 2010-09-25
  • 打赏
  • 举报
回复
catch了你又throw出来?
是不是这个循环啊?

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧