Hi,

I am trying to build groovy (mater branch) on java 21 using `./gradlew build` but i get a some compilation errors. e.g:

groovy/subprojects/stress/src/stressTest/java/org/codehaus/groovy/util/ManagedConcurrentMapStressTest.java:94: error: cannot find symbol       private void multipleThreadsPutWhileRemovingRefs(final ManagedConcurrentMap<Object, String> map) throws Exception {
                                                             ^
    symbol:   class ManagedConcurrentMap
    location: class ManagedConcurrentMapStressTest

groovy/subprojects/stress/src/stressTest/java/org/codehaus/groovy/util/ManagedConcurrentMapStressTest.java:61: error: package AbstractConcurrentMapBase does not exist                 AbstractConcurrentMapBase.Entry<String> e = (AbstractConcurrentMapBase.Entry)o;

BUILD FAILED in 47m 34s
534 actionable tasks: 534 executed
Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.EOFException: No input provided for project         at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:63)         at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:42)         at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:127)
        at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: java.io.EOFException: No input provided for project
        at org.apache.tools.ant.Project.defaultInput(Project.java:1303)
        at org.apache.tools.ant.Project.demuxInput(Project.java:1325)
        at org.apache.tools.ant.DemuxInputStream.read(DemuxInputStream.java:73)         at org.gradle.util.internal.DisconnectableInputStream$1.run(DisconnectableInputStream.java:98)

After some digging it looks like ManagedConcurrentMap and AbstractConcurrentMapBase were removed in 4.x but for some reason not removed from the stress tests. I am tempted to try to fix it. Should the ManagedConcurrentMapStressTest class be removed, fixed by using a WeakHashMap (or a Guava MapMaker) instead of  a ManagedConcurrentMap or something else?

(`./gradlew clean dist` works fine btw)

Best regards,

Per

Reply via email to