处理重构“重命名包”时捕获到异常 [英] exception has been caught while processing the refactoring 'Rename package'

查看:358
本文介绍了处理重构“重命名包”时捕获到异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse中用于包名称的重构功能在今天一直有效……

This refactoring function in Eclipse for package names used to work for me fine until... today:

这是我第一次收到此怪异的重构错误,我不知道该怎么做:

This is the first time I am receiving this weird Refactoring error, and I have no idea what to make of it:



处理重构重命名$时捕获了一个异常。 b $ b Package。

An exception has been caught while processing the refactoring 'Rename Package'.

原因:
移动资源时遇到的问题。

Reason: Problems encountered while moving resources.

点击 撤消撤消所有成功完成的
执行的当前
重构的更改。单击中止以中止
当前的重构。

Click 'Undo' to undo all successfully executed changes of the current refactoring. Click 'Abort' to abort the current refactoring.

是什么可以解释这种突然的转变以及如何该如何解决?

What could possibly explain this sudden "change of heart" and how do I fix it?

推荐答案

从快照看来,您正在运行Windows 7,也许是Vista。如果不是重命名问题,请尝试以管理员身份运行eclipse。可能与权限相关,但这只是一个想法。

Seems from your snapshot that you are running windows 7, maybe vista. If its not a renaming issue, try running eclipse as administrator. It might be permissions-related, but its just a thought.

我认为Kurru所说的是值得的。 Windows不是区分大小写的操作系统,这意味着将Cat和cat视为同一事物。重命名程序包时,Eclipse将创建新目录/文件夹以将其放入其中。如果更改了单词的大小写但未实际重命名,则可能会引发此错误。

I see merit behind what Kurru is saying. Windows is not a case-sensitive operating system, meaning that is sees the words Cat and cat as the same thing. When you rename your package, Eclipse creates new directories/folder to put the package in. If you changed the case of your words and not actually rename it, it could throw this error.

这篇关于处理重构“重命名包”时捕获到异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆