facebook / infer

A static analyzer for Java, C, C++, and Objective-C
http://fbinfer.com/
MIT License
14.8k stars 2k forks source link

java: Infer injects outdated, buggy maven-compiler-plugin version 3.8.0 #1783

Closed kohlschuetter closed 9 months ago

kohlschuetter commented 11 months ago

Maven fails with

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project junixsocket-tipc: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile failed: Cannot invoke "java.lang.Throwable.getCause()" because "cause" is null -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

Note that the maven-compiler-plugin version is 3.8.0, even though the project specified 3.11.0. Version 3.8.0 had a bug ( (MCOMPILER-360) that is triggered by forcibly downgrading to that version.

(Pull request below)