chenbp1982 / ijab

Automatically exported from code.google.com/p/ijab
0 stars 0 forks source link

Error compiling code with Ant: RosterReader: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object #26

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a GWT project for anzsoft.iJabBar.iJabBar
2. Copy the build.xml from the project to the code repo downloaded from this SVN
3. Add the libs/ directory to the classpath in build.xml
4. Run ant in the usual way

What is the expected output? What do you see instead?

The compiler fails with the following error
    [javac] iJabBar\src\anzsoft\iJabBar\client\data\RosterReader.java:210: type parameters of <X>X cannot be determined; no unique maximal instance exists for type variable X with upper bounds int,java.lang.Object
    [javac]             totalCount =  m.get("roster_count");
    [javac]                                ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

What version of the product are you using? On what operating system?
Happens on latest version of code from SVN. Compiling with JDK 1.6.0_21 on 
Windows XP.

Original issue reported on code.google.com by vikram.m...@gmail.com on 29 Nov 2010 at 1:57