frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Fixrleak: Fixing Java Resource Leaks with GenAI

https://www.uber.com/blog/fixrleak-fixing-java-resource-leaks-with-genai/
17•carimura•1y ago

Comments

stevoski•1y ago
> “Resource leaks, where resources like files, database connections, or streams aren’t properly released after use, are a persistent issue in Java applications”

This was true maybe back in 2005. Java has had try-with-resources for a loooong time. As I see it this has been the dominant idiom for ages, for handling resources that might leak.

okr•1y ago
People tend to forget. Stream-API is a good candidate, that people like to not consider for leakage. If you don't own your stream, if you do not definitly know, that your stream comes from a collection, then ya better close it with a try-block.
bob778•1y ago
How much effort was spent automating this to fix 112 instances across Uber’s code base? I assume code reviews would catch any new issues so this seems like overkill for a small one-off task?
hawk_•1y ago
Spotbugs or checkstyle etc... would catch these. What does AI add here?
xyst•1y ago
It gives marketing team at Uber to say "wE uSe AI hErE!!1". C-levels approve since anything AI gets a nice pump.

Engineering wise. This adds nothing. It’s an absolute waste of compute and energy to run this through LLMs

sigotirandolas•1y ago
> This analysis ensures that FixrLeak skips functions where resources are passed as parameters, returned, or stored in fields, as these resources often outlive the function’s scope.

> FixrLeak delivers precise, reliable fixes while leaving more complex cases for advanced analysis at the caller level.

In other words, this will only fix trivial leaks, which are best seen as a language design issue and can be fixed by RAII, reference counting, etc.

It won't fix the more insidious leaks like `UNBOUNDED_QUEUE.add(item)` that are more likely to pass through code review in the first place.

xyst•1y ago
Using AI when a static scanner like SonarQube easily picks up these types of resource leaks, especially in Java.

Peak waste.

What’s next?

"Get rid of your GitHub dependabot alerts and replace it with my shitty ChatGPT wrapper”

rvz•1y ago
> Using AI when a static scanner like SonarQube easily picks up these types of resource leaks, especially in Java.

Exactly.

It's very disappointing to see that Uber engineers would rather trust an LLM to that claims to spot these issues when a battle-tested scanner such as SonarQube would have caught this in the first place.

The LLM hype-train is almost just as bad as the JavaScript hype train in the 2010s where some of the worst technologies are used on everything.

rvz•1y ago
Why exactly do you need LLMs for this when efficient alternatives like SonarQube or checkstyle already do this without the expensive waste LLMs create?

This adds little to no technical advantage over existing solutions what so ever for this particular use case.

yahoozoo•1y ago
stupid af
Traubenfuchs•1y ago
So you tell me those 200-600k software engineers that can easily solve leetcode hard are so incompetent they missed using try-with-resources at such scale, they needed to introduce new AI tooling to fix it?

Hey Uber, I am from the EU, I usually can‘t even solve leetcode medium but I will write you scalable, spotless Java for a third of the salary.

Our industry and its economics are a joke.

hello_moto•1y ago
So you write bug-free scalable code 100% in any jobs you ever worked for?

I guess we don’t need QA and Dev/Staging environment

rad_gruchalski•1y ago
Can the QA team? How does the dev/staging environment help writing less buggy code?
rad_gruchalski•1y ago
But can you leetcode heh.
TYMorningCoffee•1y ago
A lot of commenters point out that there already are many established static checkers that do this. That is not what Uber attempts here.

Uber is not proposing a static checker. They even use sonar qube in their architecture. They propose using an LLM to resolve the leak detected by sonar qube.

After 7 months, Glasswing overwelms maintainers with underwhelming findings

https://www.vulncheck.com/blog/anthropic-glasswing-november-update
171•panic•2h ago•65 comments

Scion is back and is going to sell a kei truck in America

https://www.theautopian.com/scion-is-back-and-its-going-to-sell-a-freaking-kei-truck-in-america/
311•NaOH•5h ago•232 comments

.name Grandfathered

https://neil.fraser.name/news/2026/11/10/
672•p4bl0•8h ago•155 comments

Smart home devices should work without the internet

https://docodethatmatters.com/home-automation-overnight-success/
687•skittleson•9h ago•248 comments

Six Math Essentials by Terence Tao

https://teorth.github.io/tao-web/six-math-essentials.html
114•digital55•4h ago•24 comments

Synaptics patent claims stop work on DisplayLink drivers

https://lwn.net/SubscriberLink/1102549/acbc92e00cee3a3f/
285•speckx•7h ago•149 comments

Starlink Mini 2

https://starlink.com/mini-2
221•robertjfclarke•6h ago•230 comments

Val Town is winding down

https://blog.val.town/winding-down
300•tosh•7h ago•77 comments

Pinot Noir: inside the criminal gangs making fake wine

https://www.economist.com/interactive/2026/11/06/pinot-noir-inside-the-criminal-gangs-making-fake...
26•axiomdata316•2d ago•4 comments

Hacking the meta ray-ban smartglasses

https://p0pcycle.com/2026/11/06/hacking-the-meta-ray-ban-smartglasses/
32•moooooky•3d ago•8 comments

AlphaProof Code

https://deepmind.google/blog/introducing-alphaproof-code/
576•ilreb•13h ago•175 comments

Show HN: Get your coding agent off ~2019 JavaScript, onto modern web primitives

https://github.com/GoogleChrome/modern-web-guidance
252•paulirish•7h ago•72 comments

AMD's Zen 6 Family: Feeding the Beast

https://chipsandcheese.com/p/amds-zen-6-family-feeding-the-beast
180•pixelpoet•8h ago•68 comments

What objective is reasoning solving?

https://alexwang.ai/posts/reasoning-as-pathfinding/
98•gmays•5h ago•42 comments

Research taste in history: the importance of learning Babylonian math

https://resobscura.substack.com/p/research-taste-in-history-the-importance
8•benbreen•5h ago•0 comments

The DRAM interface and the PHY (why a DDR3+ interface must be tuned at boot)

https://github.com/enjoy-digital/litedram/blob/master/doc/manual/03_dram_interface.md
9•peter_d_sherman•1h ago•0 comments

Show HN: Aircad – Professional drafting and 3D modeling in the browser

https://aircad.com
9•peetle•10h ago•3 comments

Sherman Anti-Trust Act (1890)

https://www.archives.gov/milestone-documents/sherman-anti-trust-act
69•hashmap•4h ago•40 comments

Process Explorer for macOS

https://github.com/microsoft/Procexp-Mac
133•ingve•1d ago•46 comments

Ableton Live 13

https://www.ableton.com/en/live/
271•phaser•12h ago•294 comments

Show HN: Valencia, Spain in Sim City/Isometric View

https://tinyvalencia.com/
190•leugim•9h ago•48 comments

A comprehensive study of how fingerprintable users are

https://fingerprinting.study/
64•tomrittervg•6h ago•28 comments

Simon Winchester has died

https://www.nytimes.com/2026/11/04/obituaries/simon-winchester-dead.html
67•benbreen•2d ago•25 comments

$30M Raised to Redo the CPU

https://tendrils.co/blog/2026-11-10/30m-raised
19•shioyama•2h ago•6 comments

AI usage generates a fragile codebase

https://evanxmerz.com/post/ai-usage-generates-a-fragile-codebase/
365•plun9•14h ago•400 comments

What's new in the .NET 11 runtime

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-11/runtime
238•stevefan1999•12h ago•167 comments

Blender 5.3 released with Gaussian Splat support

https://www.blender.org/download/releases/5-3/
424•amlib•8h ago•63 comments

Stable URLs for 42,000 Huts and Peaks

https://peter-hoffmann.com/2026/stable-urls-for-huts-and-peaks.html
21•lumpa•2d ago•1 comments

rVPN – stealth VPN with end-to-end encryption

https://rvpn.org/
58•michaelsbradley•3h ago•50 comments

An Open Field Guide to Inference Engineering

https://docs.modelplane.ai/guides/inference-guide
68•d-ramdass•7h ago•8 comments