Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while doing "ant dist" #2

Open
maskas opened this issue Oct 14, 2014 · 1 comment
Open

Error while doing "ant dist" #2

maskas opened this issue Oct 14, 2014 · 1 comment

Comments

@maskas
Copy link

maskas commented Oct 14, 2014

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)

@JamesXNelson
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants