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.

A Herculaneum scroll has been read for the first time

https://scrollprize.org/firstscroll
201•verditelabs•2h ago•60 comments

IBM debuts sub-1 nanometer chip technology

https://newsroom.ibm.com/2026-06-25-ibm-debuts-worlds-first-sub-1-nanometer-chip-technology
84•porridgeraisin•2h ago•48 comments

Zig's new bitCast semantics and LLVM back end improvements

https://ziglang.org/devlog/2026/#2026-06-25
139•kouosi•4h ago•40 comments

Oxide computer 3D rack guided tour

https://explorer.oxide.computer/
32•darthcloud•3d ago•8 comments

I built a GPU back end for Emacs

https://en.andros.dev/blog/4b707a03/how-i-built-a-gpu-backend-for-emacs/
58•andros•2d ago•12 comments

OS9Map

https://yllan.org/software/OS9Map/
66•LaSombra•3h ago•7 comments

You can't unit test for taste

https://dev.karltryggvason.com/you-cant-unit-test-for-taste/
195•kalli•1d ago•78 comments

Apple raises prices of MacBooks, iPads

https://www.reuters.com/world/asia-pacific/apple-raises-prices-macbooks-ipads-memory-costs-skyroc...
333•virgildotcodes•5h ago•542 comments

Besimple AI (YC P25) Is Hiring

https://www.ycombinator.com/companies/besimple-ai/jobs/yWfhhOR-strategic-projects-lead-audio-data
1•yzhong94•1h ago

Show HN: I made Google Trends for Hacker News by indexing 18 years of comments

https://hackernewstrends.com
452•ytkimirti•4h ago•120 comments

Windows 10 quietly gets one more year of support and updates

https://www.neowin.net/news/windows-10-quietly-gets-one-more-year-of-support-and-updates/
100•bundie•2h ago•65 comments

Half-Life 2 in a Browser

https://hl2.slqnt.dev/
572•panza•12h ago•230 comments

Tw-fade: pure CSS scroll-driven edge masking

https://pete.design/tw-fade
45•petekp•3d ago•17 comments

Early adversity leaves lasting molecular imprint across the body: primate study

https://medicalxpress.com/news/2026-06-early-life-adversity-molecular-imprint.html
21•gmays•4d ago•1 comments

Anthropic says Alibaba illicitly extracted Claude AI model capabilities

https://www.reuters.com/world/china/anthropic-says-alibaba-illicitly-extracted-claude-ai-model-ca...
714•htrp•22h ago•1155 comments

Show HN: Chess-Inspired Roguelike

https://princechazz.com
26•cowboy_henk•4d ago•8 comments

52-hertz whale

https://en.wikipedia.org/wiki/52-hertz_whale
41•brightbeige•22h ago•2 comments

Advanced Nintendo Entertainment System (ANES) – NES Modded to Use 2 PPUs

https://github.com/decrazyo/anes
27•zdw•1d ago•5 comments

How to get your first customers [video]

https://www.ycombinator.com/library/SF-how-to-get-your-first-10-customers
41•aurenvale•23h ago•12 comments

Physicists Track and Trap the Elusive Neutrino

https://www.quantamagazine.org/how-physicists-track-and-trap-the-elusive-neutrino-20260624/
21•ibobev•3h ago•3 comments

Show HN: Turn native language audio into flashcards and shadowing practice

https://lingochunk.com/try
59•alder•6h ago•26 comments

LastPass notifies users of yet another data breach

https://9to5mac.com/2026/06/23/lastpass-notifies-users-of-yet-another-data-breach/
380•mooreds•7h ago•161 comments

Show HN: MiniPCs.zip – Charting the Pareto frontier of Mini PCs

https://minipcs.zip
68•yathern•4d ago•27 comments

Political bias in AI: Where the AI models stand

https://trakkr.ai/bias
36•mektrik•5h ago•96 comments

Cloudflare launched self-managed OAuth for all

https://blog.cloudflare.com/oauth-for-all/
315•terryds•16h ago•137 comments

Deno 2.9

https://deno.com/blog/v2.9
109•enz•2h ago•39 comments

The disappearance of Japan's animators

https://economist.com/interactive/1843/2026/06/19/the-strange-disappearance-of-japans-animators
69•andsoitis•4d ago•59 comments

Show HN: Bible as RAG Database

https://www.crosscanon.com/
98•jacksonastone•16h ago•66 comments

Mixing Visual and Textual Code

https://arxiv.org/abs/2603.15855
61•doppioandante•17h ago•40 comments

European Commission lines up Amazon and Microsoft for cloud gatekeeper status

https://www.theregister.com/legal/2026/06/25/european-commission-lines-up-amazon-and-microsoft-fo...
32•Bender•2h ago•8 comments