placeholder

Fixrleak: Fixing Java Resource Leaks with GenAI

Resource leaks, where resources like files, database connections, or streams aren’t properly released after use, are a persistent issue in Java applications. These leaks can lead to performance degradation, and system failures. While tools like SonarSource SonarQubeTM effectively identify such lea...

Click to view the original at uber.com

Hasnain says:

Looking forward to future posts in the series.

“For organizations dealing with similar challenges, FixrLeak offers key takeaways:

Prioritize structured code analysis: AST-based techniques help ensure fixes are safe and context-aware.

Automate targeted fixes: Focus on well-scoped, high-confidence fixes first to maximize success rates.

Integrate AI responsibly: Validate AI-generated code with rigorous testing and code review processes.

While FixrLeak is currently deployed at Uber, the principles behind it—combining static analysis with GenAI—can be adapted to other large-scale systems. Companies seeking to automate code quality improvements can explore similar techniques using AI-assisted code repair, AST analysis, and structured prompt engineering.

This blog kicks off a series from the Programming Systems group on leveraging GenAI for software engineering challenges. Stay tuned for the next post, where we explore how GenAI can automatically fix data races in Golang”

Posted on 2025-05-03T22:14:45+0000