It doesn't work if you pass a different runtime.java.home. It does work if you're using the same gradle/runtime jvm. Seems like gradle emits an empty sourcepath which changes runtime javac behavior:
-sourcepath "" I don't know if there's any workaround for this. D. On Sat, Dec 18, 2021 at 11:02 PM Dawid Weiss <[email protected]> wrote: > > I see it on Jenkins but can't reproduce this on any system I have access > to (Linux, Windows). We don't do anything special for javac - the arguments > there are collected from within gradle... So weird. > > D. > > On Sat, Dec 18, 2021 at 9:34 PM Uwe Schindler <[email protected]> wrote: > >> There's also the same bug in javac. It fails with an error in every >> source file. >> >> Uwe >> >> Am 18. Dezember 2021 20:13:09 UTC schrieb Dawid Weiss < >> [email protected]>: >>> >>> >>> Eh. It seems this bug in ECJ is not predictable - it fails on the CI, it >>> doesn't fail for me locally. >>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=569833 >>> >>> >* Task :lucene:core:ecjLintMain* FAILED >>> ---------- >>> 1. ERROR in >>> /home/jenkins/workspace/Lucene-9.x-Linux/lucene/core/src/java/module-info.java >>> (at line 22) >>> exports org.apache.lucene.analysis; >>> ^^^^^^^^^^^^^^^^^^^^^^^^^^ >>> The package org.apache.lucene.analysis does not exist or is empty >>> >>> >>> On Sat, Dec 18, 2021 at 9:08 PM Policeman Jenkins Server < >>> [email protected]> wrote: >>> >>>> Build: https://jenkins.thetaphi.de/job/Lucene-9.x-Linux/465/ >>>> Java: 64bit/jdk-17 -XX:+UseCompressedOops -XX:+UseSerialGC >>>> >>>> No tests ran. >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>> >>> -- >> Uwe Schindler >> Achterdiek 19, 28357 Bremen >> https://www.thetaphi.de >> >
