`

The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,P

    博客分类:
  • SSH
阅读更多

问题地址:http://www.iteye.com/topic/1120924?page=20

 

请问,对于BaseHibernateDao里面的方法,list,含有不定参数,在myeclipse的x86_64位上运行没有问题。 
但是在eeclipse-jee-juno-SR1-win32-x86_64上运行就有问题,提示: 
The method list(String, Object[]) is ambiguous for the type BaseHibernateDao<M,PK> 
麻烦您看下。

 

decentway 写道

你看看编译器选择的是几?

 

jinnianshilongnian 写道

好像是eclipse juno 不支持可变函数。。。。 

 

decentway 写道

好像是eclipse juno 不支持可变函数。。。。 

 

decentway 写道

不是不支持,算是个bug。 
具体见http://stackoverflow.com/questions/10852923/method-is-ambiguous-for-the-type-but-the-types-are-not-ambigues-and-the-error 
总之很神经。

 

linfanne写道(解决方案)

 嗯,这个问题也困扰我一个晚上,看了一下你的链接解决了,

环境 win64 +eclipse4.2.1 +jdk1.6 

解决方法 在eclipse.ini -vmargs后面添加  -DtolerateIllegalAmbiguousVarargsInvocation=true 

重启eclipse,并clean一下项目 重新编译即可,希望对之前 好几个人问的同一个问题有解决办法, 

当然要是 楼主能编辑一下 在自己的文章里就好了,看了博客和论坛的这个文章 至少有5个以上的人遇到了这个问题。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  •  

分享到:
评论

相关推荐

    Object Segmentation by Long Term Analysis of

    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 ...

    微软内部资料-SQL性能优化3

    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 ...

    json error: Use of overloaded operator [] is ambiguous错误的解决方法

    今天小编就为大家分享一篇关于json error: Use of overloaded operator [] is ambiguous错误的解决方法,小编觉得内容挺不错的,现在分享给大家,具有很好的参考价值,需要的朋友一起跟随小编来看看吧

    Knowledge-Embedded Routing Network for Scene Graph Generation.pdf

    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 ...

    SQLPrompt_7.3.0.651(包含注册机)

    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...

    一个跨平台的CString源码

    // the Standard C++ Library basic_string&lt;&gt; template and add to it the // the following conveniences: // - The full MFC CString set of functions (including implicit cast) // - writing to/reading ...

    编译原理龙书答案

    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 ...

    AS3.0高级设计模式

    is somewhat ambiguous and makes design patterns a difficult topic. Fortunately, a difficult subject does not necessarily mean one that is complicated in its understanding. This will be evident in ...

    springframework.5.0.12.RELEASE

    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 ...

    Transistor Amplifiers

    involves a list of considerations and each is patiently gone through so that the resulting design is of industry-standard quality. Then a prototype is built and its behavior compared with design ...

    SIP - Understanding the Session Initiation Protocol, 2nd Ed - 1459

    Foreword to the First Edition xvii Preface to the Second Edition xix Preface to the First Edition xxi 1 SIP and the Internet 1 1.1 Signaling Protocols 1 1.2 The Internet Engineering Task Force 2 1.3 A...

    Ambiguous mapping. Cannot map *** method 报错解决

    1. Ambiguous mapping. Cannot map ‘***’ method 报错原因(同时满足一下两点会报错): RequestMapping 的请求类型相同(同为 post) api地址一样(同为 save_custom_approval) 解决:修改请求方式 或 修改请求...

    CVPR2019-ocr.zip

    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)...

    TC(turbo c)编译出错信息一览表

    C语言学习必备资料&lt;br&gt;TC(turbo c)编译出错信息一览表&lt;br&gt;&lt;br&gt;ambiguous operators need parentheses &lt;br&gt;不明确的运算需要用括号括起 &lt;br&gt;ambiguous symbol ''xxx'' &lt;br&gt;不明确的符号 &lt;br&gt;argument list syntax ...

    JLink_Windows_V648.zip

    DLL: JTAG: When only having 1 TAP in the JTAG chain and its matches the one for the configured CPU core but the TAP-ID was unknown, connect did not work. Fixed. DLL: Linux: Delayed / slowed execution ...

    IPv6 Core Protocols Implementation

    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 ...

    MATLAB实现K-means聚类

    error('The ''start'' parameter value must be a string or a numeric matrix or array.'); end % ------------------------------------------------------------------ % 如果一个聚类丢失了所有成员,这个进程...

    SQLPrompt_7.5.1.1000

    Latest version 7.5.1.1000 Released 4/11/2017 SQL Prompt 7.5.1.1000 This build of SQL Prompt includes these improvements: SP-6197 Add support for SQL ...See the full release notes for full details

    Crafting a Compiler by Charles N. Fisher Richard J. LeBlanc 带目录版

    4.5.2 Deriving the Empty String 128 4.5.3 First Sets 130 4.5.4 Follow Sets 134 4.6 Exercises 138 5 Top-Down Parsing 143 5.1 Overview 144 5.2 LL(k) Grammars 145 5.3 Recursive-Descent LL(1) Parsers 149 ...

    Smart Card

    Even the name Smart Card captures the imagination, however such a term is ambiguous and is used in many different ways. ISO uses the term, Integrated Circuit Card (ICC) to encompass all those devices ...

Global site tag (gtag.js) - Google Analytics