异常描述:
Multiple markers at this line
- The method find(String, Object[]) is ambiguous for the type
BaseDaoI
- Line breakpoint:UserServiceImpl [line: 81] - combobox(String)
问题解析:
查了下,在 StackOverflow 上找到了相关解释:
ambiguous 是 Java5/6 遗留的 bug,在 Java7 上进行了修复.然而这一修改却对旧代码的审查上产生如上的错误提示了.
而 Eclipse Juno(4.2.1)使用 Java7 进行编译,所以会报出这个问题。
解决方案:
方案一:
配置Eclipse,让它打包时忽略此错误。
进入 eclipse 安装目录打开 eclipse.ini,在 -vmargs 后面添加
-DtolerateIllegalAmbiguousVarargsInvocation=true此方案让eclipse编译项目是忽略此错误,但Eclipse任然会显示红叉.及提示你出错,但允许你打包编译.
此方案并不能从根本解决问题,且在Java7逐渐流行的未来问题还是问题.
方案二:
修改代码,取消或合并方法.
具体还没有思路
相关推荐
conversion from type1 to type2 is ambiguous(解决方案).md
总结来说,当你遇到“Use of overloaded operator [] is ambiguous”的错误时,确保使用无符号整数(如`0U`)或者显式类型转换(如`SizeType(0)`)来消除编译器的不确定性。这将允许你正确地访问JSON数组中的第一个...
operator op is ambiguous(解决方案).md
from static cues is well known to be ambiguous at the object level, the story changes as soon as objects move. In this paper, we present a method that uses long term point trajectories based on dense ...
overloaded function function is ambiguous(解决方案).md
Another type of table lock is a schema stability lock (Sch-S) and is compatible with all table locks except the schema modification lock (Sch-M). The schema modification lock (Sch-M) is incompatible ...
Inthiswork,wefindthat the statistical correlations between object pairs and their relationships can effectively regularize semantic space and make prediction less ambiguous, and thus well address the ...
1. Ambiguous mapping. Cannot map ‘***’ method 报错原因(同时满足一下两点会报错): RequestMapping 的请求类型相同(同为 post) api地址一样(同为 save_custom_approval) 解决:修改请求方式 或 修改请求...
// the Standard C++ Library basic_string<> template and add to it the // the following conveniences: // - The full MFC CString set of functions (including implicit cast) // - writing to/reading ...
The work contributes to the field of computational linguistics by offering an alternative method to improve the accuracy of semantic similarity assessments in NLP tasks, particularly where data is ...
2. public static String toJSONString(Object object, SerializerFeature... features) {...} 这两个方法都可以匹配到Object类型的参数,但是 Scala 无法确定使用哪个方法,因此出现了ambiguous reference to ...
Fix for incorrectly qualifying a column using the xml "modify" method (Forum post) Fix for syntax error being introduced when wrapping long lines containing multi-line strings 7.3.0.619 - 17th October...
the sum of this string is: sum = Σn (21 + 20) * 2 n + Σm (23 + 20) * 2m = Σn 3 * 2 n + Σm 9 * 2m It is obviously can divisible by 3. No. Consider string "10101", it is divisible by 3, but cannot ...
Regression: IllegalStateException: Ambiguous handler methods is thrown for explicit HEAD mapping [SPR-17593] #22125 Exporting a lazily initialized bean (which implements SelfNaming and is annotated ...
method, successfully capturing the analytic and geometric properties of pen strokes with strong local invariance and robustness. A multi-spatial-context fully convolutional recurrent network (MC-FCRN)...
IPv6 was introduced in 1994 and has been in development at the IETF for over 10 years. It has now reached the deployment stage. KAME, the de-facto open-source reference implementation of the IPv6 ...
- **例句**: Absolute truth is often difficult to find. 7. **absorption** - **含义**: 吸收、理解 - **例句**: The sponge has excellent absorption properties. 8. **abstractcf: concrete** - **含义...
If you want to start using Computer Vision algorithms in your projects, it may be ambiguous where the entry point is. Even if you're an experienced Computer Vision engineer, undoubtedly there are ...
DLL: Added support for command string "CORESIGHT_SetCoreBaseAddr" DLL: Cypress PSoC4 family: Under special circumstances, unlock did not work. Fixed. DLL: Cypress PSoC4 family: Under special ...