IBM / codenet-minerva-code-analyzer

Java source code (and/or binary) to JSON based system dependency graph generator.
Apache License 2.0
1 stars 3 forks source link

Projects that require Java 8 to build fails with NullPointerException with codeAnalyzer #31

Open fabio-franco opened 2 months ago

fabio-franco commented 2 months ago

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:

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)