eclipse 3.4(ganymede)包与类型冲突 [英] eclipse 3.4 (ganymede) package collision with type

查看:178
本文介绍了eclipse 3.4(ganymede)包与类型冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个以异常结尾的软件包,例如

We have a package that ends with exception e.g.

package a.b.c.exception;

直到eclipse 3.3之前,我们的代码库都没有问题,但是当我们转到eclipse 3.4时,它开始给出与此软件包相关的错误:

Our code base had no issues up till eclipse 3.3, however when we shifted to eclipse 3.4, it started giving errors related to this package:

"The package a.b.c.exception collides with a type"

当我将软件包名称重构为a.b.c.exceptions时,没有任何问题.是因为eclipse 3.4中的错误还是有一些设置可以纠正这种行为?

When I refactor the package name to a.b.c.exceptions, there are no issues. Is this due to a bug in eclipse 3.4 or is there some setting to rectify this behavior?

推荐答案

我在eclipse中更改了编译选项之一,问题消失了. 在工作空间属性下: Java编译器->错误/警告-> 将未使用的导入"从警告"更改为忽略".

I changed one of the compilation option in eclipse and the problem disappeared. Under workspace properties: Java Compiler -> Errors/Warnings -> Change 'Unused import' from 'Warning' to 'Ignore'.

这篇关于eclipse 3.4(ganymede)包与类型冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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