← Lab /Software

SAST tools report far more issues in Java OCPP implementations than in Rust

SAST tool performance varies by programming language, with mature languages yielding more findings

Software arXiv 10 Nov 2026 Measurement Prototype evidence

Published as “How Well Do SAST Tools Work Across Languages? An Empirical Study Using OCPP Implementations”

Why it matters

Developers should consider the maturity of a language’s static analysis ecosystem when choosing a language for OCPP implementations, and a multi-tool approach can improve coverage of both quality and security issues.

Summary

SAST tools detect vastly different numbers of issues across OCPP 1.6 implementations, ranging from just two findings in Rust to 1,689 in Java, with 89% of the 4,660 total findings being code quality issues and only 11% classified as security CWEs; the evidence comes from an analysis of twelve open-source implementations using multiple static analysis tools, but the study’s reliance on default tool configurations and a single implementation per language limits confidence in the results.

What they found 3

  1. Finding counts vary dramatically by language, from 2 in Rust to 1,689 in Java.

    “total finding counts ranging from just two findings for Rust to 1,689 for Java.”

  2. Only 11% of all detected issues are security-related CWEs.

    “Of the 4,660 total findings identified across all implementations, five hundred (11%) were classified as security-related Common Weakness Enumerations (CWEs), while the remaining 4,160 (89%) represented code quality and maintainability issues.”

  3. C# and Ruby have the highest proportion of security findings (85% and 96%).

    “C# and Ruby implementations stand out as having the highest proportion of security-related findings, with 85% and 96% of their issues, respectively, classified as genuine security CWEs.”

Caveats 4

  • We do not attempt to determine whether the detected issues correspond to true vulnerabilities or false positives.
  • Our study measures tool detection patterns rather than accuracy of findings.
  • We used default configurations for all static analysis tools to ensure consistency and reflect “outof-the-box” behavior; customized configurations would likely yield different detection patterns [28].
  • Our study analyzed one implementation per programming language, limiting generalizability within each language ecosystem.

What’s new here 4

  • First empirical comparison of SAST tool performance across multiple programming languages for OCPP implementations.
  • Quantifies how language-specific tooling ecosystems affect the volume and type of detected issues.
  • Highlights the predominance of quality-focused findings over security findings in real-world protocol implementations.
  • Provides a multi-tool assessment (platform and language-specific tools) to illustrate coverage gaps.