On Tuesday, December 18, 2012 2:50:04 PM UTC+1, SiJa wrote:
The error can be reproduced with this project. If you call "mvn clean package" and check WebInterfaceRequestFactoryDeobfuscatorBuilder.java you can see the duplicated entry for bean OPAssertionWithInformation. Eclipse compile also gives you two entries. If you rename APWithInfEntityProxy.java in ANPWithInfEntityProxy.java Eclipse compile gives you only one entry.
I'm sorry I don't reproduce using either OpenJDK 7u9 (Ubuntu package) or Oracle JDK 6u27 with "mvn clean compile" (or "mvn clean package"). I haven't tried in Eclipse yet.
I'm afraid you'll have to try to debug it. It might have to do with multiple invocations of the annotation processor and/or the fact that we use ExecutableElement instances as keys in maps (I've seen some comments in a Dagger pull request about the fact the compiler objects are not guaranteed to be reused between rounds, and Dagger is thus using Strings as keys in internal maps: see
https://github.com/square/dagger/pull/111 and
https://github.com/square/dagger/pull/108).
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-19-generic", arch: "amd64", family: "unix"
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: fr_FR, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-19-generic", arch: "amd64", family: "unix"