You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Justin Edelson <ju...@justinedelson.com> on 2013/10/03 14:28:19 UTC

[IDE] Build Issue in impl-vlt-test

Hi,
I get the following error when trying to compile the impl-vlt-test
module on the command line when compiling with Java 6 (1.6.0_51). It
works OK inside Eclipse and when using the command line with Java 7
(1.7.0_25):

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
(default-testCompile) on project org.apache.sling.ide.impl-vlt-test:
Compilation failure: Compilation failure:
[ERROR] /Users/justin/KeplerWorkspace/sling-builder/tooling/ide/impl-vlt-test/src/test/java/org/apache/sling/ide/impl/vlt/serialization/ContentXmlHandlerTest.java:[133,9]
cannot find symbol
[ERROR] symbol  : method
assertThat(java.lang.String,java.lang.Iterable<org.apache.sling.ide.transport.ResourceProxy>,org.hamcrest.Matcher<java.lang.Iterable<?
super java.lang.Object>>)
[ERROR] location: class
org.apache.sling.ide.impl.vlt.serialization.ContentXmlHandlerTest
[ERROR] /Users/justin/KeplerWorkspace/sling-builder/tooling/ide/impl-vlt-test/src/test/java/org/apache/sling/ide/impl/vlt/serialization/ContentXmlHandlerTest.java:[141,9]
cannot find symbol
[ERROR] symbol  : method
assertThat(java.lang.String,java.util.List<org.apache.sling.ide.transport.ResourceProxy>,org.hamcrest.Matcher<java.lang.Iterable<?
super java.lang.Object>>)
[ERROR] location: class
org.apache.sling.ide.impl.vlt.serialization.ContentXmlHandlerTest
[ERROR] /Users/justin/KeplerWorkspace/sling-builder/tooling/ide/impl-vlt-test/src/test/java/org/apache/sling/ide/impl/vlt/serialization/ContentXmlHandlerTest.java:[148,9]
cannot find symbol
[ERROR] symbol  : method
assertThat(java.lang.String,java.util.List<org.apache.sling.ide.transport.ResourceProxy>,org.hamcrest.Matcher<java.lang.Iterable<?
super java.lang.Object>>)
[ERROR] location: class
org.apache.sling.ide.impl.vlt.serialization.ContentXmlHandlerTest

Regards,
Justin

Re: [IDE] Build Issue in impl-vlt-test

Posted by Robert Munteanu <ro...@apache.org>.
Hi Justin,

On Thu, 2013-10-03 at 08:28 -0400, Justin Edelson wrote:
> Hi,
> I get the following error when trying to compile the impl-vlt-test
> module on the command line when compiling with Java 6 (1.6.0_51). It
> works OK inside Eclipse and when using the command line with Java 7
> (1.7.0_25):
> 
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
> (default-testCompile) on project org.apache.sling.ide.impl-vlt-test:
> Compilation failure: Compilation failure:
> [ERROR] /Users/justin/KeplerWorkspace/sling-builder/tooling/ide/impl-vlt-test/src/test/java/org/apache/sling/ide/impl/vlt/serialization/ContentXmlHandlerTest.java:[133,9]
> cannot find symbol
> [ERROR] symbol  : method
> assertThat(java.lang.String,java.lang.Iterable<org.apache.sling.ide.transport.ResourceProxy>,org.hamcrest.Matcher<java.lang.Iterable<?
> super java.lang.Object>>)

(snip)

Thanks for the report.

I've filed 

SLING-3145: Compilation error in impl-vlt-test with Java 6
https://issues.apache.org/jira/browse/SLING-3145

to track this down. It seems to be some sort of type inference issue
where javac (6) and eclipsec disagree. I'll work around their
differences somehow.

Robert