Community
Participate
Working Groups
https://download.eclipse.org/eclipse/downloads/drops4/I20190104-1800/testresults/html/org.eclipse.jdt.compiler.tool.tests_ep411I-unit-cen64-gtk3-java11_linux.gtk.x86_64_11.html All tests from CompilerToolJava9Tests fail to setup because they only can find a single compiler: Only one compiler available expected:<2> but was:<1> junit.framework.AssertionFailedError: Only one compiler available expected:<2> but was:<1> at junit.framework.Assert.fail(Assert.java:57) at junit.framework.Assert.failNotEquals(Assert.java:329) at junit.framework.Assert.assertEquals(Assert.java:78) at junit.framework.Assert.assertEquals(Assert.java:234) at junit.framework.TestCase.assertEquals(TestCase.java:401) at org.eclipse.jdt.compiler.tool.tests.CompilerToolJava9Tests.setUp(CompilerToolJava9Tests.java:96) Running test locally in the IDE with JDK 11 works fine (at least on Windows).
Tests are broken since 4.9, 4.8 seem to work.
New Gerrit change created: https://git.eclipse.org/r/134673
Gerrit change https://git.eclipse.org/r/134673 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=fd8ce3dd52781df46999576fa403926038d439b7
(In reply to Eclipse Genie from comment #3) > Gerrit change https://git.eclipse.org/r/134673 was merged to [master]. > Commit: > http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/ > ?id=fd8ce3dd52781df46999576fa403926038d439b7 THis shows us that we miss Eclipse compiler (javac is there): Only one compiler available: [com.sun.tools.javac.api.JavacTool@517704, null] expected:<2> but was:<1> So I guess we miss some extra dependency on 11???
(In reply to Andrey Loskutov from comment #4) > So I guess we miss some extra dependency on 11??? I can't figure what that could be. Do you think there is problem in loading the EclipseCompiler? I don't see anything in the logs.
(In reply to Jay Arthanareeswaran from comment #5) > (In reply to Andrey Loskutov from comment #4) > > So I guess we miss some extra dependency on 11??? > > I can't figure what that could be. Do you think there is problem in loading > the EclipseCompiler? I don't see anything in the logs. I wonder if this is similar to https://git.eclipse.org/r/#/c/127420/. I will push a patch in a moment.
New Gerrit change created: https://git.eclipse.org/r/134781
Gerrit change https://git.eclipse.org/r/134781 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=bca4b9066a8b48c5fe7734a4ddebb80297960efa
New Gerrit change created: https://git.eclipse.org/r/134817
(In reply to Eclipse Genie from comment #9) > New Gerrit change created: https://git.eclipse.org/r/134817 This should finally fix the test. Now we had the EclipseCompiler loaded, but unfortunately the Java compiler doesn't load with the EclipseCompiler class loader on 11, so all we need is just to remove the count check, because the default system JavaCompiler was retrieved by a different method anyway.
Gerrit change https://git.eclipse.org/r/134817 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=33638a6a047ecaaaf475b6a2d8bc5f3917adfa86
Fixed in https://download.eclipse.org/eclipse/downloads/drops4/I20190109-0655/testResults.php.