Java 注释月度 – 2026 年 5 月

TL;DR · AI 摘要
本文总结了2026年5月Java和Kotlin领域的最新动态,包括AI工具的使用、测试驱动开发实践以及技术趋势分析。
核心要点
- Emily Bache分享了关于AI代理和测试驱动开发的最新见解
- Birgitta Böckeler提供了AI工具‘harness’设计的最佳参考
- Kevlin Henney探讨了人类在AI辅助编程中的关键工程技能
结构提纲
按章节快速跳转。
- §引言
介绍本月Java和Kotlin领域的重要更新与技术趋势。
分析AI代理在软件开发中的应用及测试驱动开发的最新实践。
推荐相关技术文档、教程和工具使用指南。
分享开发者对AI工具使用的反思与未来发展方向的思考。
思维导图
用一张图看清主题之间的关系。
查看大纲文本(无障碍 / 无 JS 友好)
- Java Annotated Monthly – May 2026
- AI代理与测试驱动开发
- AI工具使用指南
- 测试驱动开发实践
- 技术资源与工具
- Java新闻汇总
- Kotlin发展动态
- 行业洞察与观点
- AI工具伦理讨论
- 开发者经验分享
金句 / Highlights
值得收藏与分享的关键句。
Birgitta Böckeler提供了关于AI工具‘harness’设计的最佳参考,帮助开发者有效利用AI。
Kevlin Henney的演讲强调了在AI辅助编程中仍需保持的工程技能,以避免潜在问题。
Emily Bache分享了关于测试驱动开发的最新实践,结合AI代理的应用进行深入分析。
IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin
Java Annotated Monthly – May 2026

May 5, 2026
April flew by. The pace of tech development didn’t slow, and the flow of news and knowledge didn’t either.
This month, Emily Bache joins us to share some sharp finds about AI agents and test-driven development. Java stays busy with fresh updates and practical tips, and Kotlin keeps pushing forward right next to it. The AI section is, as usual, packed with things worth your attention.
You’ll also find upcoming events to plan for and a few ideas to challenge your thinking.
Featured Content

#### Emily Bache
Emily Bache is an independent consultant, YouTuber, author, and Technical Coach, with over 25 years of experience working with Java and other programming languages and tools. She works with developers, training and coaching effective agile practices like refactoring and test-driven development. Emily has written two books about software development and contributed to several others. Emily founded the Samman Technical Coaching Society in order to promote technical excellence and support coaches everywhere.
It’s my pleasure to bring to your attention some interesting content that appeared in April. The huge change that is sweeping through our industry right now is the adoption of AI coding agents, which many people are using instead of hand-coding changes to software. One of the most important new skills to master is designing a “harness” for your AI tool, and this month Birgitta Böckeler has published the best reference I’ve seen so far about what that is and a mental model for how to think about it. Chris Parsons has also published an extensive guide titled _How I use AI to Code_, which is a really great resource for experienced developers looking to create their own harness and mentor others to do the same.
Perhaps as a contrast, I’d also like to highlight Michael Taggart’s introspective experience report on his use of AI. He wrestles with his conscience over using these tools at all. An interesting metaphor for AI-assisted coding came up in an article by Drew Breunig – we run the risk of building a Winchester Mystery House. After you read that, listen to Kevlin Henney’s talk _Being the Human in the Loop_, where he takes a look at the engineering skills we still need – ones that could perhaps prevent the kind of thing Drew writes about from happening.
I have a particular interest in test-driven development, which, as a technical coach, is a big part of what I teach to others. I wrote an initial assessment of what TDD looks like these days, based on interviews with several practitioners I trust who are all using agentic AI. For those of you who’d like to see me in action writing code, I have a demo of a narrow integration test for an outbound port in a hexagonal architecture, in Kotlin.
Java News
Catch what shipped and track what’s next:
- Java News Roundup 1, 2, 3, 4
- Newsletter: Java 26 Is Now Available | JDK 27 Heads-Ups
- Quality Outreach Heads-up – JDK 27: Obsolete Translation Resources Removed
- Update Your JDK, Read More Code, and Talk to Your Users: Interviews From VoxxedDays Amsterdam (#93)
Java Tutorials and Tips
Steal these tricks:
- Analysing Crashed JVMs – Inside Java Newscast #109
- Oracle’s Java Verified Portfolio and JavaFX: What It Actually Means
- 10 Things I Hate About Java by Adele Carpenter
- Is AI Ruining Java Open Source? – Andres Almiray | The Marco Show
- Java 26: Updates You Must Know
- Java and Gen AI: JVM Agents With Embabel by Rod Johnson (Spring Creator)
- A Bootiful Podcast: Java Developer Advocate Ana-Maria Mihalceanu
- Does Java Really Use Too Much Memory? Let’s Look at the Facts (JEPs)
- Thread-Safe Native Memory in Java: VarHandle Access Modes Explained
- [Episode 54 “How JDK 26 Improves G1’s Throughput” [AtA]](https://inside.java/2026/04/09/podcast-054/)
- You Must Avoid Final Field Mutation – Inside Java Newscast #110
- How the JVM Optimizes Generic Code
- The Curious Case of Enum and Map Serialization
- Avoiding Final Field Mutation
Kotlin Corner
- Kotlin kontra Java – Part 1 – Ecosystem
- Kotlin Professional Certificate by JetBrains – Now on LinkedIn Learning
- Introducing Koog Integration for Spring AI: Smarter Orchestration for Your Agents
- Reliable AI Agents Using Domain Modeling With Koog in Java
AI
Cut the hype, test the tools, and boost your flow:
- How We Built a Java AI Agent by Connecting the Dots the Ecosystem Already Had
- Stateful Continuation for AI Agents: Why Transport Layers Now Matter
- A Bootiful Podcast: Mark Kropf on AI Orchestration
- Embabel Tools & MCP Servers: Supercharge Your Java AI Agents
- Adversarial AI: Understanding the Threats to Modern AI Systems
- Why Java Developers Over-Trust AI Dependency Suggestions
- A GitHub Agentic Workflow
- ACP Java SDK: Building IDE Agents in Java
- Spring AI Agentic Patterns (Part 7): Session API – Event-Sourced Short-Term Memory with Context Compaction
- Beyond RAG: Architecting Context-Aware AI Systems With Spring Boot
- Spring AI Agentic Patterns (Part 6): AutoMemoryTools – Persistent Agent Memory Across Sessions
- 5 Best Practices for Working with AI Agents, Subagents, Skills, and MCP
- Deepfakes, Disinformation, and AI Content Are Taking Over the Internet
- MCP in the Java World: Bringing Architectural Strategy to LLM Integrations
Languages, Frameworks, Libraries, and Technologies
Explore new tools and technologies, and revisit the old ones:
- This Week in Spring 1, 2, 3, 4
- Article: Beyond RAG: Architecting Context-Aware AI Systems With Spring Boot
- Six and a Half Ridiculous Things to Do With Quarkus
- The Spring Team on Spring Framework 7 and Spring Boot 4
- A Bootiful Podcast: The Legendary Craig Walls
- Enabling Reflection-Free Jackson Serializers by Default
- Understanding Performance
- A Bootiful Podcast: A Bootiful Podcast: Dr. Venkat Subramaniam and James Ward on Intelligent Kotlin and So Much More
- The Road to Docker Official Images for Java: The Azul Zulu Story
- Spring Debugger New Power: Where Should I Click to Demystify Spring Boot Magic?
Conferences and Events
Join the crowd online or offline:
- JAX – Mainz, Germany or Online, May 4–8
- Devoxx UK – London, United Kingdom, May 6–7; JetBrains will have a booth at the event. Also, come and listen to our JetBrains speakers: Marit van Dijk, Cheuk Ting Ho, and Simon Vergauwen.The Spring documentary will premiere there, followed by a panel with Josh Long, Steve Poole, and Marit van Dijk.
- GeeCon – Kraków, Poland, May 14–15; Marit van Dijk is speaking and moderating a panel on Java to discuss what excites each of them most about Java in 2026.
- JAlba – Edinburgh, Scotland, May 14–16
- JNation Conference – Coimbra, Portugal, May 26–27; Anton Arhipov and Marit van Dijk from JetBrains are the speakers.
- JCON Slovenia – Portorož, Slovenia, May 27–29

Culture and Community
Where do you stand on these topics?
- Panel: Building a Culture That Works
- How to Do What You Love and Make Good Money
- Do Things That Don’t Scale
- Encoding Team Standards
- Beyond the Hype: Is AI Taking the Fun out of Software Development?
And Finally…
One last thing before you close the article. Don’t skip it!
- Using Spring Data JPA With Kotlin
- Using Spring Data JDBC With Kotlin
- Speeding up Interactive Rebase in JetBrains IDEs
- From Java to Wayland: A Pixel’s Journey
That’s it for today! We’re always collecting ideas for the next Java Annotated Monthly – send us your suggestions via email or X by May 20. And don’t forget to check out our archive of past JAM issues for any articles you might have missed!
[](https://blog.jetbrains.com/idea/2026/05/java-annotated-monthly-may-2026#)
- Featured Content
- Java News
- Java Tutorials and Tips
- Kotlin Corner
- AI
- Languages, Frameworks, Libraries, and Technologies
- Conferences and Events
- Culture and Community
- And Finally…