Issue java14: Failed dataflow analysis for java.lang.Math#max(JJ)J

  • sonarqube-gradle-plugin: version “2.8”
  • jdk 14 (openjdk)
org.sonar.java.bytecode.se.BytecodeEGWalker$BytecodeAnalysisException: Failed dataflow analysis for java.lang.Math#max(JJ)J
        at org.sonar.java.bytecode.se.BytecodeEGWalker.getMethodBehavior(BytecodeEGWalker.java:299)
        at org.sonar.java.se.xproc.BehaviorCache.get(BehaviorCache.java:159)
        at org.sonar.java.se.xproc.BehaviorCache.get(BehaviorCache.java:131)
        at org.sonar.java.se.ExplodedGraphWalker.executeMethodInvocation(ExplodedGraphWalker.java:692)
        at org.sonar.java.se.ExplodedGraphWalker.visit(ExplodedGraphWalker.java:563)

  1. gradle 6.3
  2. jdk 14 (openjdk)
  3. call Math.max(int, int)
  4. ./gradlew sonarqube

Hello @thaarbach!

First, thanks for the feedback.

Our Java analyzer is unfortunately not yet fully supporting Java 14. In particular, our Symbolic Execution (SE) engine is not yet compatible with java 14 bytecode, and therefore not able to operate correctly.

However, note that it should have a limited impact on the analysis, and only a small dozen of rules will be impacted (not reporting anything). We should get rid of the issue with this ticket: SONARJAVA-3382

Cheers,
Michael

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.