为什么不能在相同的包中解决类问题? [英] Why can't eclipse resolve class in same package?

查看:130
本文介绍了为什么不能在相同的包中解决类问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打F5〜1000次,并重新启动日食(也与 - 清洁),删除/斌,但没有任何帮助。手动导入DoodleClient不起作用。 DoodleClient存在,并且非常好,以前一切正常。点击导入DoodleClient'...不会做任何事情。



在发生此问题之前,我做了什么:


  1. 我将* .class添加到.gitignore

  2. git rm * .class

  3. 在下一次拉动时,git删除了.class文件的hunderts

可以解决它:
在另一个项目上(来自同一个git仓库),我在不同软件包中的几个文件上遇到同样的问题。我所要做的只是在文件中写一个空白区域,再次移除并保存,所以eclipse会重新编译它(我猜)。

某种一种奇怪的行为......:S


I hit F5 ~1000 times and restarted eclipse (also with -clean), deleted /bin, but nothing helps. Manually importing DoodleClient does not help. DoodleClient exists and is perfectly fine, everything worked before. Clicking on "Import 'DoodleClient' ..." does nothing.

What I did before this problem occured:

  1. I added *.class to .gitignore
  2. git rm *.class
  3. On the next pull, hunderts of .class files were deleted by git

解决方案

I could resolve it: On another project (from the same git repo), I had the same issue on several files in different packages. All I had to do was writing a white-space into the file, remove it again and save, so eclipse would re-compile it (I guess).

Some kind of a strange behaviour... :S

这篇关于为什么不能在相同的包中解决类问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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