This issue happens because the project can only be built with Java 8, however, the code analyzer requires at least Java 11. It seems we need to discuss later how this issue needs to be covered.
Steps to reproduce:
clone modresorts using the java8-required branch
set your env to java 8 and make a successful build (mvn install)
set your env to java 11 and run the code analyzer
Error:
java -jar codeanalyzer-20240611T181729.jar -i <my_path1>/modresorts -o <my_path2>/modresorts/codeAnalyzer -a 2
java.lang.NullPointerException
at com.ibm.northstar.utils.ScopeUtils.createScope(ScopeUtils.java:111)
at com.ibm.northstar.SystemDependencyGraph.construct(SystemDependencyGraph.java:208)
at com.ibm.northstar.CodeAnalyzer.analyze(CodeAnalyzer.java:124)
at com.ibm.northstar.CodeAnalyzer.run(CodeAnalyzer.java:86)
at picocli.CommandLine.executeUserObject(CommandLine.java:1767)
at picocli.CommandLine.access$900(CommandLine.java:145)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2139)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2106)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1973)
at picocli.CommandLine.execute(CommandLine.java:1902)
at com.ibm.northstar.CodeAnalyzer.main(CodeAnalyzer.java:77)
This issue happens because the project can only be built with Java 8, however, the code analyzer requires at least Java 11. It seems we need to discuss later how this issue needs to be covered.
Steps to reproduce:
java8-required
branchError: