WeTheInternet / collide

Fork of Collaborative Web IDE by Google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while doing "ant dist"

maskas opened this issue · comments

Here is the error:

src.client.src.shared.build:

src.client.build-java:
[javac] Compiling 2 source files to /var/www/collide/bin/classes
[javac] warning: Supported source version 'RELEASE_7' from annotation processor 'xapi.dev.processor.AnnotationMirrorProcessor' less than -source '1.8'
[javac] warning: Supported source version 'RELEASE_7' from annotation processor 'xapi.dev.processor.InjectionAnnotationProcessor' less than -source '1.8'
[javac] /var/www/collide/java/com/google/collide/client/testing/DebugAttributeSetter.java:104: error: reference to on is ambiguous
[javac] on(Elements.asJsElement(element));
[javac] ^
[javac] both method on(elemental.dom.Element) in DebugAttributeSetter and method on(com.google.gwt.dom.client.Element) in DebugAttributeSetter match
[javac] 1 error
[javac] 2 warnings

BUILD FAILED
/var/www/collide/java/com/google/collide/client/build.xml:49: The following error occurred while executing this line:
/var/www/collide/macros.ant.xml:126: Compile failed; see the compiler error output for details.

Total time: 1 second

MY MACHINE:

ant -version
Apache Ant(TM) version 1.9.3 compiled on April 8 2014

java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)

Thank you for the detailed version information. I am currently on vacation for this week, but will check it out once I am back at my workstation.

It looks like a generics specificity disagreement between your new version of java and the older version I had used last time I built collide. Most likely, capturing the value of Elements.asJsElement(element) into a local variable should help the compiler disambiguate which type you mean to use.