morphonets / SNT

The ImageJ framework for quantification of neuronal anatomy
https://imagej.net/plugins/snt
GNU General Public License v3.0
42 stars 18 forks source link

Test compilation fails with JDK 21 #237

Closed carshadi closed 3 months ago

carshadi commented 3 months ago

Trying to run StartImageJAndSNTDemo from IntelliJ using JDK 21 (Amazon Corretto 21.0.4) on Windows 10 leads to the following build errors:

C:\Users\cameron.arshadi\repos\SNT\src\test\java\sc\fiji\snt\PersistenceAnalyzerTest.java:64:78
java: incompatible types: java.util.List<java.util.List<java.lang.Double>> cannot be converted to java.util.ArrayList<java.util.ArrayList<java.lang.Double>>
C:\Users\cameron.arshadi\repos\SNT\src\test\java\sc\fiji\snt\PersistenceAnalyzerTest.java:76:57
java: incompatible types: java.util.List<java.lang.Double> cannot be converted to java.util.ArrayList<java.lang.Double>
C:\Users\cameron.arshadi\repos\SNT\src\test\java\sc\fiji\snt\PersistenceAnalyzerTest.java:88:43
java: incompatible types: java.util.List<java.lang.Double> cannot be converted to java.util.ArrayList<java.lang.Double>
C:\Users\cameron.arshadi\repos\SNT\src\test\java\sc\fiji\snt\PersistenceAnalyzerTest.java:99:90
java: incompatible types: java.util.List<java.util.List<sc.fiji.snt.util.SWCPoint>> cannot be converted to java.util.ArrayList<java.util.ArrayList<sc.fiji.snt.util.SWCPoint>>