bineanzhou / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

cannot build #223

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I ran ant in the trunk, I can the following error:

compile:
    [mkdir] Created dir: /home/nadaa/guice/google-guice-read-only/build/classes
    [javac] Compiling 144 source files to
/home/nadaa/guice/google-guice-read-only/build/classes
    [javac]
/home/nadaa/guice/google-guice-read-only/src/com/google/inject/InjectorImpl.java
:359:
reference to visit is ambiguous, both method
visit(com.google.inject.spi.ConstantBinding<? extends T>) in
com.google.inject.spi.BindingVisitor<capture#853 of ? super T> and method
visit(com.google.inject.spi.ConvertedConstantBinding<? extends T>) in
com.google.inject.spi.BindingVisitor<capture#853 of ? super T> match
    [javac]       bindingVisitor.visit(this);
    [javac]                     ^
    [javac] Note:
/home/nadaa/guice/google-guice-read-only/src/com/google/inject/internal/Errors.j
ava
uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

BUILD FAILED
/home/nadaa/guice/google-guice-read-only/common.xml:16: Compile failed; see
the compiler error output for details.

Original issue reported on code.google.com by nada.a...@gmail.com on 23 Jul 2008 at 4:01

GoogleCodeExporter commented 9 years ago
The guice trunk only builds with a Java5 compiler at the moment, if you use a 
Java6
compiler you will see this message about ambiguous methods:

  http://groups.google.com/group/google-guice/browse_thread/thread/9f3f2496027480cf

Original comment by mccu...@gmail.com on 23 Jul 2008 at 6:03

GoogleCodeExporter commented 9 years ago
Dupe of #162

Original comment by limpbizkit on 23 Jul 2008 at 8:33