<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Gilware</title>
    <description>The latest articles on DEV Community by Gilware (@gilwaredev).</description>
    <link>https://dev.to/gilwaredev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4238000%2F4927daba-9c98-4047-88fb-0081ba2ff9f8.png</url>
      <title>DEV Community: Gilware</title>
      <link>https://dev.to/gilwaredev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gilwaredev"/>
    <language>en</language>
    <item>
      <title>Four ways an Android library release breaks the apps that use it</title>
      <dc:creator>Gilware</dc:creator>
      <pubDate>Mon, 30 Nov 2026 15:00:37 +0000</pubDate>
      <link>https://dev.to/gilwaredev/four-ways-an-android-library-release-breaks-the-apps-that-use-it-3ej5</link>
      <guid>https://dev.to/gilwaredev/four-ways-an-android-library-release-breaks-the-apps-that-use-it-3ej5</guid>
      <description>&lt;p&gt;An AAR carries code, a manifest and resources, and each of them is part of your API. We compared nine recent releases of five popular Android libraries on Maven Central with the release before each one. Here's what changed, what it does to the apps that depend on them, and what to do instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What we compared
&lt;/h2&gt;

&lt;p&gt;For each library we took the last few stable releases from Maven Central and compared every AAR with the one before it: the classes in &lt;code&gt;classes.jar&lt;/code&gt;, &lt;code&gt;minSdkVersion&lt;/code&gt; in the manifest, and the resources listed in &lt;code&gt;R.txt&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Release&lt;/th&gt;
&lt;th&gt;Class changes that break callers&lt;/th&gt;
&lt;th&gt;minSdk&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Lottie 6.6.10 → 6.7.0 → 6.7.1&lt;/td&gt;
&lt;td&gt;0, 0&lt;/td&gt;
&lt;td&gt;16 (unchanged)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glide 5.0.7 → 5.0.9&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 → 23&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glide 5.0.9 → 5.0.10&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;td&gt;23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Calendar (view) 2.9.1 → 2.10.0 → 2.10.1&lt;/td&gt;
&lt;td&gt;0, 0&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;21 → 23&lt;/strong&gt;, then 23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Koin (koin-android) 4.1.1 → 4.2.0 → 4.2.1&lt;/td&gt;
&lt;td&gt;0, 0&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;21 → 23&lt;/strong&gt;, then 23&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Balloon 1.7.5 → 1.7.6&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;23 (unchanged)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most releases changed no public classes in a way that breaks callers. Three raised &lt;code&gt;minSdk&lt;/code&gt;, which no class comparison shows, and some of Glide's class changes are in a class its own release notes call internal.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Raising minSdk
&lt;/h2&gt;

&lt;p&gt;Glide 5.0.9 raised &lt;code&gt;minSdkVersion&lt;/code&gt; from 14 to 23. The previous release on Maven Central was 5.0.7, so for anyone upgrading, this happened in a patch release. Glide announced it in the 5.0.8 notes: &lt;em&gt;"Bump Glide &lt;code&gt;minSdkVersion&lt;/code&gt; to 23 to match AndroidX requirements"&lt;/em&gt;, under Build Changes. (5.0.9 is the same release with a fixed version name, and 5.0.8 never reached Maven Central.) Calendar 2.10.0 and Koin 4.2.0 raised it from 21 to 23 in minor releases.&lt;/p&gt;

&lt;p&gt;An app with a lower &lt;code&gt;minSdk&lt;/code&gt; that takes the upgrade stops building. The manifest merger in the Android Gradle Plugin fails with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;uses-sdk:minSdkVersion 21 cannot be smaller than version 23 declared in library [com.github.bumptech.glide:glide:5.0.9]
as the library might be using APIs not available in 21
    Suggestion: use a compatible library with a minSdk of at most 21,
        or increase this project's minSdk version to at least 23,
        or use tools:overrideLibrary="com.bumptech.glide" to force usage (may lead to runtime failures)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The build failure is easy to see. An app that can't raise its own &lt;code&gt;minSdk&lt;/code&gt; is then stuck on the old version and misses every fix after it. Glide 5.0.10 has a security fix (sensitive headers are now stripped on cross-origin redirects), and an app on minSdk 21 can't take it without dropping devices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; treat a &lt;code&gt;minSdk&lt;/code&gt; raise as a change your users have to act on. Many libraries do it in a minor release, which is fine if it's the first line of the release notes and not something people find out from a failed build. Doing it in a patch release surprises the people who pin to patch updates precisely because they expect nothing to change.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Public classes you think of as internal
&lt;/h2&gt;

&lt;p&gt;Glide 5.0.9 made three public classes &lt;code&gt;final&lt;/code&gt;, among them &lt;code&gt;Engine&lt;/code&gt; and &lt;code&gt;ViewPreloadSizeProvider&lt;/code&gt;. Glide 5.0.10 changed three public methods of &lt;code&gt;Engine&lt;/code&gt; to take an &lt;code&gt;EngineKey&lt;/code&gt; instead of a &lt;code&gt;Key&lt;/code&gt;, and removed &lt;code&gt;DiskLruCacheWrapper.create(File, long, boolean)&lt;/code&gt;, which 5.0.9 had added already marked &lt;code&gt;@Deprecated&lt;/code&gt;. Glide's 5.0.10 notes describe the &lt;code&gt;Engine&lt;/code&gt; change as narrowing &lt;em&gt;"internal"&lt;/em&gt; tracking keys.&lt;/p&gt;

&lt;p&gt;From Glide's side, that's fair: nobody is supposed to subclass &lt;code&gt;Engine&lt;/code&gt;. But an app or another library only sees &lt;code&gt;public class Engine&lt;/code&gt; with public methods. Nothing in the bytecode says "internal", so code that did subclass or call it compiled without a warning and breaks on the upgrade:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'com.bumptech.glide.load.engine.cache.DiskCache
    com.bumptech.glide.load.engine.cache.DiskLruCacheWrapper.create(java.io.File, long, boolean)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's a client compiled against 5.0.9 and run with 5.0.10 on the JVM. On a device, ART reports the same missing method in its own wording.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; mark the boundary in the code, where users and tools can see it:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In Kotlin, use &lt;code&gt;internal&lt;/code&gt;. It's still public in the bytecode, but other modules can't call it from Kotlin.&lt;/li&gt;
&lt;li&gt;Annotate with &lt;code&gt;@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)&lt;/code&gt; from &lt;code&gt;androidx.annotation&lt;/code&gt;. Android Lint's &lt;code&gt;RestrictedApi&lt;/code&gt; check then flags any use outside your library group, and it runs by default in Android projects.&lt;/li&gt;
&lt;li&gt;Keep implementation classes in a package with "internal" in its name, so users and tools can tell them apart.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. "But apps recompile anyway"
&lt;/h2&gt;

&lt;p&gt;On Android, the app is rebuilt from source every time, so it can look as if only source compatibility matters. But the app isn't the only code that uses your library. Other libraries in the same app were compiled against the version of yours that they were built with, and they aren't recompiled. Gradle picks one version of your library for the whole app, usually the highest one requested. If another library was built against Glide 5.0.9 and calls &lt;code&gt;DiskLruCacheWrapper.create(File, long, boolean)&lt;/code&gt;, an app that also pulls in Glide 5.0.10 compiles fine and gets the &lt;code&gt;NoSuchMethodError&lt;/code&gt; above at runtime, on the user's phone.&lt;/p&gt;

&lt;p&gt;Kotlin makes this easy to trigger. Adding a parameter with a default value keeps every caller's source working, but changes the compiled signature:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;YearMonth&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;show&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;month&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;YearMonth&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;animate&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Boolean&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An app that calls &lt;code&gt;show&lt;/code&gt; itself just compiles against 1.1. A library compiled against 1.0 still calls the one-parameter version, which no longer exists. (This is an example, not a change from the libraries above.) Adding a property to a public &lt;code&gt;data class&lt;/code&gt; breaks callers the same way. Both are covered, with the real errors, in &lt;a href="https://gilware.com/bumpwise/kotlin-breaking-changes/" rel="noopener noreferrer"&gt;Seven Kotlin changes that pass your build and break your users&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; keep the old signature as an overload marked &lt;code&gt;@Deprecated(level = DeprecationLevel.HIDDEN)&lt;/code&gt; that calls the new one. Old binaries find it, and new code can't see it.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Resources are public unless you say otherwise
&lt;/h2&gt;

&lt;p&gt;The Android documentation says: &lt;em&gt;"All resources in a library default to public."&lt;/em&gt; Every layout, string, drawable and attribute in your AAR can be used by the app as &lt;code&gt;R.&amp;lt;type&amp;gt;.&amp;lt;name&amp;gt;&lt;/code&gt;, and renaming or removing one breaks the apps that used it. Once you declare at least one resource public in &lt;code&gt;res/values/public.xml&lt;/code&gt;, all the others become private. Android Studio then leaves them out of code completion, and Lint warns when an app uses one anyway.&lt;/p&gt;

&lt;p&gt;In our sample, Lottie 6.7.1 and Calendar 2.10.1 ship no &lt;code&gt;public.txt&lt;/code&gt;, so all 32 and 28 of their resources are public. Balloon 1.7.6 declares 12 public resources and keeps the rest private. None of the releases we compared removed a resource.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; add a &lt;code&gt;public.xml&lt;/code&gt; listing the attributes and styles users are meant to set. A single &lt;code&gt;&amp;lt;public /&amp;gt;&lt;/code&gt; tag with no name makes every resource private.&lt;/p&gt;

&lt;h2&gt;
  
  
  The four at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;What the app sees&lt;/th&gt;
&lt;th&gt;Instead&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Higher &lt;code&gt;minSdk&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Manifest merger fails&lt;/td&gt;
&lt;td&gt;First line of the release notes; not in a patch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changed "internal" public class&lt;/td&gt;
&lt;td&gt;Compile error, or &lt;code&gt;NoSuchMethodError&lt;/code&gt; in another library&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;internal&lt;/code&gt;, &lt;code&gt;@RestrictTo&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New parameter with a default&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;NoSuchMethodError&lt;/code&gt; in libraries built against the old version&lt;/td&gt;
&lt;td&gt;Hidden deprecated overload&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Renamed or removed resource&lt;/td&gt;
&lt;td&gt;Unresolved &lt;code&gt;R&lt;/code&gt; reference&lt;/td&gt;
&lt;td&gt;&lt;code&gt;public.xml&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How to catch them
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://kotlinlang.org/docs/gradle-binary-compatibility-validation.html" rel="noopener noreferrer"&gt;Binary compatibility validation in the Kotlin Gradle plugin&lt;/a&gt; (experimental), or the older &lt;a href="https://github.com/Kotlin/binary-compatibility-validator" rel="noopener noreferrer"&gt;binary-compatibility-validator&lt;/a&gt; plugin, now in maintenance mode. Both write your public API to a file you commit and fail the build when it changes unexpectedly.&lt;/li&gt;
&lt;li&gt;Lint's &lt;code&gt;RestrictedApi&lt;/code&gt; check, once your internal classes carry &lt;code&gt;@RestrictTo&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://gilware.com/bumpwise/" rel="noopener noreferrer"&gt;Bumpwise&lt;/a&gt;: our plugin for Android Studio and IntelliJ IDEA. It downloads the AAR of your last release, compares it with your code and highlights the changes that break it while you type, with quick fixes such as the hidden overload above. It checks classes only: it doesn't compare &lt;code&gt;minSdk&lt;/code&gt; or resources yet. To leave classes out, add their package or an &lt;code&gt;"@androidx.annotation.RestrictTo"&lt;/code&gt; entry to &lt;code&gt;exclude&lt;/code&gt; in &lt;code&gt;.bumpwise.yml&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/TdHcQ1RscKg" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Android Studio: install, the warning, the hidden overload fix and the next version&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: Gilware makes Bumpwise. It's free for Java libraries on Maven Central; Kotlin support is part of Bumpwise Team, the paid edition, which has a 30-day free trial.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How we checked
&lt;/h2&gt;

&lt;p&gt;On 20 November 2026 we downloaded each AAR from Maven Central and compared the classes with the Bumpwise engine. We then checked every reported change by hand with &lt;code&gt;javap&lt;/code&gt;, read &lt;code&gt;minSdkVersion&lt;/code&gt; from each AAR's &lt;code&gt;AndroidManifest.xml&lt;/code&gt;, and counted resources from &lt;code&gt;R.txt&lt;/code&gt; (styleable entries left out). The manifest merger message is the one in the Android Gradle Plugin's manifest merger. Release notes are quoted from each project's GitHub releases. The &lt;code&gt;NoSuchMethodError&lt;/code&gt; comes from a small client compiled against Glide 5.0.9 and run with 5.0.10 (OpenJDK 25).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://gilware.com/bumpwise/android-library-breaking-changes/" rel="noopener noreferrer"&gt;gilware.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>kotlin</category>
      <category>opensource</category>
      <category>semver</category>
    </item>
    <item>
      <title>Still there, still broken: two methods that only looked inherited</title>
      <dc:creator>Gilware</dc:creator>
      <pubDate>Tue, 24 Nov 2026 15:00:37 +0000</pubDate>
      <link>https://dev.to/gilwaredev/still-there-still-broken-two-methods-that-only-looked-inherited-44p6</link>
      <guid>https://dev.to/gilwaredev/still-there-still-broken-two-methods-that-only-looked-inherited-44p6</guid>
      <description>&lt;p&gt;In Spring Framework 5.1.10 and jackson-core 2.23.0, a method disappeared from a class but stayed available through a superclass. Code compiled against the previous release fails at runtime. Below are both cases, with the errors we got from small test clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where these come from
&lt;/h2&gt;

&lt;p&gt;For &lt;a href="https://gilware.com/bumpwise/semver-violations/" rel="noopener noreferrer"&gt;our report on semantic versioning&lt;/a&gt;, we compared thousands of consecutive releases on Maven Central with two tools and looked by hand at the cases where the tools disagreed. In these two, a removed method seemed harmless because a method with the same name was still there, yet code compiled against the previous release broke.&lt;/p&gt;

&lt;p&gt;Both libraries are carefully maintained by experienced people. These are corners of the Java platform that can catch anyone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Case 1: an override that took a &lt;code&gt;String&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;In Spring Framework, &lt;code&gt;AnnotationAttributes&lt;/code&gt; extends &lt;code&gt;LinkedHashMap&amp;lt;String, Object&amp;gt;&lt;/code&gt;. Release 5.1.9 overrides &lt;code&gt;putIfAbsent&lt;/code&gt;, and release 5.1.10 removes the override. The class still has &lt;code&gt;putIfAbsent&lt;/code&gt;, inherited from &lt;code&gt;HashMap&lt;/code&gt;, so the change looks safe.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 5.1.9&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;AnnotationAttributes&lt;/span&gt; &lt;span class="k"&gt;extends&lt;/span&gt; &lt;span class="nc"&gt;LinkedHashMap&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Object&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nd"&gt;@Override&lt;/span&gt;
    &lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;Object&lt;/span&gt; &lt;span class="nf"&gt;putIfAbsent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="n"&gt;key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;Object&lt;/span&gt; &lt;span class="n"&gt;value&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 5.1.10: the override is gone, HashMap's putIfAbsent remains&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The trouble comes from the parameter type. Because the superclass is generic, the override is declared with &lt;code&gt;String&lt;/code&gt;, and generics are erased on the JVM, so the compiler produces two methods in 5.1.9. &lt;code&gt;javap&lt;/code&gt; shows them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Object&lt;/span&gt; &lt;span class="nf"&gt;putIfAbsent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Object&lt;/span&gt; &lt;span class="nf"&gt;putIfAbsent&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;   &lt;span class="c1"&gt;// bridge, synthetic&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A client compiled against 5.1.9 calls the most specific one, the &lt;code&gt;(String, Object)&lt;/code&gt; method, which no longer exists in 5.1.10. We compiled a three-line client against 5.1.9 and ran it with the 5.1.10 jar:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.Object org.springframework.core.annotation.AnnotationAttributes.putIfAbsent(java.lang.String, java.lang.Object)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Recompiled against 5.1.10, the same client works, because the call now goes to &lt;code&gt;HashMap.putIfAbsent(Object, Object)&lt;/code&gt;. The break only hits code that isn't recompiled, such as another library that uses Spring, and a patch release is supposed to be safe for exactly that code.&lt;/p&gt;

&lt;h2&gt;
  
  
  Case 2: a static method that moved up
&lt;/h2&gt;

&lt;p&gt;In jackson-core, &lt;code&gt;NonBlockingJsonParserBase&lt;/code&gt; had a &lt;code&gt;protected static&lt;/code&gt; helper. In 2.23.0 it is gone from that class, and its superclass &lt;code&gt;JsonParserBase&lt;/code&gt; has a method with the same name and parameters:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 2.22.4, in NonBlockingJsonParserBase&lt;/span&gt;
&lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;_padLastQuad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 2.23.0, in JsonParserBase&lt;/span&gt;
&lt;span class="k"&gt;protected&lt;/span&gt; &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;_padLastQuad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;throws&lt;/span&gt; &lt;span class="nc"&gt;JsonParseException&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The name, parameters and return type match, and subclasses can still see it, but it is no longer &lt;code&gt;static&lt;/code&gt;. A subclass compiled against 2.22.4 calls it with the instruction for static methods, and the JVM refuses:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.IncompatibleClassChangeError: Expected static method 'int com.fasterxml.jackson.core.json.JsonParserBase._padLastQuad(int, int)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Recompiling does not fix this one on its own. A call from a static context stops compiling (&lt;code&gt;non-static method _padLastQuad(int,int) cannot be referenced from a static context&lt;/code&gt;), and the new method declares a checked exception. The method is protected, so only subclasses outside the library are affected, and probably very few exist, but it is still a break in a minor release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why they are easy to miss
&lt;/h2&gt;

&lt;p&gt;Both cases pass the question a person or a tool naturally asks: &lt;em&gt;can I still call a method with this name on this class?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The JVM is stricter. A compiled call names the exact descriptor (all parameter types and the return type, after erasure) and the kind of call (static or instance). If that precise method cannot be resolved, the call fails, whatever else the class offers.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;A generic override creates a second, more specific method. Removing the override removes that method, even when the bridge's target is still inherited.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Moving a method to a superclass is compatible only if everything else stays the same, including &lt;code&gt;static&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In our replay, &lt;a href="https://siom79.github.io/japicmp/" rel="noopener noreferrer"&gt;japicmp&lt;/a&gt;, the second tool we used, reported neither change. It did catch a different break that Bumpwise missed, and every checker draws its lines somewhere. &lt;a href="https://gilware.com/bumpwise/semver-violations/" rel="noopener noreferrer"&gt;The report&lt;/a&gt; summarizes the disagreements in both directions.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to avoid them in your library
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Before removing an override in a generic subclass, run &lt;code&gt;javap -p&lt;/code&gt; on the class. If the override has narrower parameter types than the inherited method, keep it, mark it &lt;code&gt;@Deprecated&lt;/code&gt; and let it call &lt;code&gt;super&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;When moving a static method to a superclass, keep it &lt;code&gt;static&lt;/code&gt;. If the new method has to be an instance method, give it a different name and leave the old static method in place, marked &lt;code&gt;@Deprecated&lt;/code&gt;. Java won't let a static method in a subclass share a signature with an instance method in its superclass.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Check against the published jar. Both changes compile, and a library's own tests are compiled with the new code, so they can't see these breaks.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where Bumpwise stands
&lt;/h2&gt;

&lt;p&gt;Bumpwise 1.1.1, run from its command line, reports the Spring change as a removed method and the jackson-core change as a method that is no longer static. In the replay it also raised false alarms, such as a &lt;code&gt;toString()&lt;/code&gt; override that was still inherited from &lt;code&gt;Object&lt;/code&gt;. We fixed those in 1.0.3.&lt;/p&gt;

&lt;p&gt;Disclosure: Gilware makes Bumpwise, a paid plugin with a free edition for Java libraries published on Maven Central.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we checked
&lt;/h2&gt;

&lt;p&gt;Spring: a client that calls &lt;code&gt;putIfAbsent("k", "v")&lt;/code&gt; on an &lt;code&gt;AnnotationAttributes&lt;/code&gt;, compiled against spring-core 5.1.9.RELEASE and run with 5.1.10.RELEASE, then recompiled against 5.1.10.RELEASE. Jackson: an abstract subclass of &lt;code&gt;NonBlockingJsonParserBase&lt;/code&gt; whose &lt;code&gt;main&lt;/code&gt; calls &lt;code&gt;_padLastQuad(1, 2)&lt;/code&gt;, compiled against jackson-core 2.22.4 and run with 2.23.0. OpenJDK 25.0.5. The messages above are copied from those runs.&lt;/p&gt;

&lt;p&gt;Found a mistake? Write to &lt;a href="mailto:hello@gilware.com"&gt;hello@gilware.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://gilware.com/bumpwise/inherited-but-broken/" rel="noopener noreferrer"&gt;gilware.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>programming</category>
      <category>opensource</category>
      <category>jvm</category>
    </item>
    <item>
      <title>We replayed 1,201 releases of popular Java libraries: 1 in 9 contains a breaking change</title>
      <dc:creator>Gilware</dc:creator>
      <pubDate>Fri, 20 Nov 2026 15:00:39 +0000</pubDate>
      <link>https://dev.to/gilwaredev/we-replayed-1201-releases-of-popular-java-libraries-1-in-9-contains-a-breaking-change-4b7j</link>
      <guid>https://dev.to/gilwaredev/we-replayed-1201-releases-of-popular-java-libraries-1-in-9-contains-a-breaking-change-4b7j</guid>
      <description>&lt;p&gt;Semantic versioning promises that minor and patch releases are safe to install. We wanted to know how often that holds today, so we replayed every minor and patch release published since January 2024 by 44 of the most-used Java libraries on Maven Central: 1,201 releases in total.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About 1 in 9 of them (141 of 1,201, 11.7%) contains at least one breaking change in its public classes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The full report, with the per-library table, the data and every caveat, is here: &lt;a href="https://gilware.com/bumpwise/semver-violations/" rel="noopener noreferrer"&gt;How often does a "compatible" release break its users?&lt;/a&gt; This post is the short version.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we counted
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The sample was not ours to pick.&lt;/strong&gt; We used the list of most-used Maven Central libraries that the authors of the Roseau paper published in 2025. Of its artifacts, 44 contain code and had minor or patch releases since 2024.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Each release was compared with the previous version&lt;/strong&gt;, jar against jar, bytecode against bytecode. Pre-releases were left out. A change in the second version number is a minor release; anything after that is a patch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two tools had to agree.&lt;/strong&gt; Every pair was checked by two independent checkers, japicmp (0.27.0) and the Bumpwise engine (1.0.6). A release counts only when both flag it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Internal code does not count.&lt;/strong&gt; Packages named &lt;code&gt;internal&lt;/code&gt;, &lt;code&gt;impl&lt;/code&gt; or &lt;code&gt;shaded&lt;/code&gt;, repackaged third-party code, packages a library's &lt;code&gt;module-info&lt;/code&gt; does not export, and code marked &lt;code&gt;@Beta&lt;/code&gt; or &lt;code&gt;@API(status = INTERNAL / EXPERIMENTAL)&lt;/code&gt; were excluded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;"Breaking" means binary or source incompatible:&lt;/strong&gt; code compiled against the old version fails to link with the new one, or code written for the old version no longer compiles. Counting binary breaks only, the figure is 8.8%.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The numbers
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Releases&lt;/th&gt;
&lt;th&gt;With a breaking change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Minor releases&lt;/td&gt;
&lt;td&gt;163&lt;/td&gt;
&lt;td&gt;58 (&lt;strong&gt;35.6%&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch releases&lt;/td&gt;
&lt;td&gt;1,038&lt;/td&gt;
&lt;td&gt;83 (&lt;strong&gt;8.0%&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All minor and patch&lt;/td&gt;
&lt;td&gt;1,201&lt;/td&gt;
&lt;td&gt;141 (&lt;strong&gt;11.7%&lt;/strong&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;28 of the 44 libraries shipped at least one such release in under three years. The median library is at 6.7%.&lt;/p&gt;

&lt;p&gt;Minor releases carry most of the breaks. In these libraries the last number of the version means something: a patch release is about four times less likely to break than a minor one.&lt;/p&gt;

&lt;h2&gt;
  
  
  It used to be worse
&lt;/h2&gt;

&lt;p&gt;We ran the same replay back to 2019 (3,096 releases):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Year&lt;/th&gt;
&lt;th&gt;Releases&lt;/th&gt;
&lt;th&gt;With a breaking change&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2019&lt;/td&gt;
&lt;td&gt;327&lt;/td&gt;
&lt;td&gt;20.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2020&lt;/td&gt;
&lt;td&gt;422&lt;/td&gt;
&lt;td&gt;17.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2021&lt;/td&gt;
&lt;td&gt;357&lt;/td&gt;
&lt;td&gt;14.0%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2022&lt;/td&gt;
&lt;td&gt;351&lt;/td&gt;
&lt;td&gt;19.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2023&lt;/td&gt;
&lt;td&gt;438&lt;/td&gt;
&lt;td&gt;18.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2024&lt;/td&gt;
&lt;td&gt;475&lt;/td&gt;
&lt;td&gt;12.2%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2025&lt;/td&gt;
&lt;td&gt;378&lt;/td&gt;
&lt;td&gt;11.4%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026 (to 8 Nov)&lt;/td&gt;
&lt;td&gt;348&lt;/td&gt;
&lt;td&gt;11.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;From about 1 in 6 before 2024 to about 1 in 9 since. Better, not gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks
&lt;/h2&gt;

&lt;p&gt;Out of the 141 releases (one release can have several kinds):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kind of change&lt;/th&gt;
&lt;th&gt;Releases&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Method removed&lt;/td&gt;
&lt;td&gt;62&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Abstract method added (to a type users implement)&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Method parameters changed&lt;/td&gt;
&lt;td&gt;38&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Class removed&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Field removed&lt;/td&gt;
&lt;td&gt;18&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generic types changed&lt;/td&gt;
&lt;td&gt;16&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Return type changed&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nothing exotic. These are removals and changed signatures: changes that compile and pass the library's own tests, and only fail in someone else's build or at runtime. If some of them surprise you, the first two posts in this series walk through the &lt;a href="https://gilware.com/bumpwise/java-breaking-changes/" rel="noopener noreferrer"&gt;Java&lt;/a&gt; and &lt;a href="https://gilware.com/bumpwise/kotlin-breaking-changes/" rel="noopener noreferrer"&gt;Kotlin&lt;/a&gt; cases one by one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Small libraries: more than 1 in 4
&lt;/h2&gt;

&lt;p&gt;The 44 libraries above are maintained by foundations, companies and experienced teams. We also took a random sample of small libraries published under &lt;code&gt;io.github.*&lt;/code&gt; (the namespace Maven Central gives to a GitHub account): 162 libraries with releases of version 1.0 or later.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Most-used libraries&lt;/th&gt;
&lt;th&gt;Small libraries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Minor releases with a break&lt;/td&gt;
&lt;td&gt;35.6%&lt;/td&gt;
&lt;td&gt;29.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Patch releases with a break&lt;/td&gt;
&lt;td&gt;8.0%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;28.2%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All minor and patch&lt;/td&gt;
&lt;td&gt;11.7%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;28.5%&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The interesting line is the patch row. In the small libraries, a patch release breaks as often as a minor one: the version number goes up, but it no longer says what kind of change is inside.&lt;/p&gt;

&lt;p&gt;Read this second set with more care: we did not check which of these projects promise semantic versioning, a break in a small library reaches fewer people, and ten libraries account for 206 of the 506 flagged releases (21.0% without them).&lt;/p&gt;

&lt;h2&gt;
  
  
  What these numbers do not say
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Not "violates semver".&lt;/strong&gt; A tool sees what is public in the bytecode, not what a project promises. We leave out &lt;code&gt;@Beta&lt;/code&gt;, &lt;code&gt;@API(status = INTERNAL)&lt;/code&gt; and packages not exported by &lt;code&gt;module-info&lt;/code&gt;, but some projects document what is stable in other ways (a FAQ, their own annotations), and we did not read each project's policy. Three libraries account for 53 of the 141 (8.7% without them).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not "broke its users".&lt;/strong&gt; We did not measure how many clients actually call the changed code. The largest earlier study of Maven Central (Ochoa et al., 2022) found that only 7.9% of clients were affected by the breaking changes it found.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not "Maven Central".&lt;/strong&gt; This is 44 popular artifacts from about 25 projects, plus one family of small namespaces.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two tools agreeing is not proof.&lt;/strong&gt; We looked by hand at every case where they disagreed (one of those turned out to be a real break that one tool missed, which is the next post in this series), but we did not build a failing client for every flagged release.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why it matters anyway
&lt;/h2&gt;

&lt;p&gt;Most of these breaks never hurt anyone. But a modern application pulls in hundreds of libraries, and "it's only a minor update" is the assumption behind every automated dependency bump. When the version number is wrong, the cost lands on the user of the library, who did nothing but upgrade.&lt;/p&gt;

&lt;p&gt;Tomasz Nowak and Predrag Gruevski, authors of the best-known study of this (for Rust, 2023), put the conclusion better than we can: &lt;em&gt;"The maintainers are not to blame, and improved tooling is our best way forward."&lt;/em&gt; Every change on the list above is detectable before the release, by japicmp, Revapi or Kotlin's binary-compatibility validator in CI, or in the editor.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Disclosure: we make &lt;a href="https://gilware.com/bumpwise/" rel="noopener noreferrer"&gt;Bumpwise&lt;/a&gt;, an IntelliJ plugin that flags these changes while you type, and its engine was one of the two tools in this replay. The method, data and per-library results are public on &lt;a href="https://gilware.com/bumpwise/semver-violations/" rel="noopener noreferrer"&gt;the report page&lt;/a&gt;. If you maintain one of these libraries and think we got your numbers wrong, tell us and we will correct the report.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>opensource</category>
      <category>programming</category>
      <category>maven</category>
    </item>
    <item>
      <title>Seven Kotlin changes that pass your build and break your users</title>
      <dc:creator>Gilware</dc:creator>
      <pubDate>Tue, 17 Nov 2026 15:00:37 +0000</pubDate>
      <link>https://dev.to/gilwaredev/seven-kotlin-changes-that-pass-your-build-and-break-your-users-54ob</link>
      <guid>https://dev.to/gilwaredev/seven-kotlin-changes-that-pass-your-build-and-break-your-users-54ob</guid>
      <description>&lt;p&gt;Default arguments, named parameters, data classes and exhaustive &lt;code&gt;when&lt;/code&gt; make Kotlin pleasant to use. They also make it easy to break the code that uses your library without noticing. Here are seven changes that compile and pass your tests, what happens to callers, and what to do instead. We checked each one with Kotlin 2.2.20.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways to break a caller
&lt;/h2&gt;

&lt;p&gt;As in Java, a change can break callers in two ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Source compatibility:&lt;/strong&gt; does the caller's code still compile against the new version?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Binary compatibility:&lt;/strong&gt; does code that was compiled against the old version still run with the new jar?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The second one matters because applications rarely recompile the other libraries they depend on. Kotlin adds its own traps on top of &lt;a href="https://gilware.com/bumpwise/java-breaking-changes/" rel="noopener noreferrer"&gt;the Java ones&lt;/a&gt;, because several of its features are compiled into code that lives in the caller, not in your library.&lt;/p&gt;

&lt;p&gt;In each example, version 1.0 is the release that callers use and 1.1 is the change. The error messages are the real ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A new parameter with a default value
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1: existing calls still compile, so it looks safe&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;greet&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;punctuation&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"!"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; compile. &lt;code&gt;greet("Ana")&lt;/code&gt; picks up the default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail. Kotlin compiles the function to a single JVM method with two parameters, and the one-parameter method that callers were compiled against no longer exists:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NoSuchMethodError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'java.lang.String lib.LibKt.greet(java.lang.String)'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; keep the old function as an overload that calls the new one, or add &lt;code&gt;@JvmOverloads&lt;/code&gt;, which generates the shorter overloads for you. With &lt;code&gt;@JvmOverloads&lt;/code&gt; on the 1.1 function, the old binary printed &lt;code&gt;Hello, Ana!&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A renamed parameter
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeoutMs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Long&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1: a clearer name&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;connect&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeoutMillis&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Long&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; every call that uses the named argument stops compiling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: no parameter with name 'timeoutMs' found.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; run. Parameter names are not part of the JVM signature.&lt;/p&gt;

&lt;p&gt;In Java, renaming a parameter is invisible to callers. In Kotlin, parameter names are public API, and named arguments are common, so treat a rename like any other signature change.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; keep the name. If it really has to change, add the new function, deprecate the old one and remove it in the next major version.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A top-level function moved to another file
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0, in Strings.kt&lt;/span&gt;
&lt;span class="k"&gt;fun&lt;/span&gt; &lt;span class="nf"&gt;slug&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1, the same function moved to Text.kt&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; compile. The package and the name are unchanged.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail. A top-level function lives in a class named after its file, here &lt;code&gt;StringsKt&lt;/code&gt;, and that class is gone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoClassDefFoundError: lib/StringsKt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Renaming the file has the same effect. It is the kind of change that shows up in a refactoring commit, not in a review of the API.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; name the class explicitly with &lt;code&gt;@file:JvmName("StringsKt")&lt;/code&gt; at the top of the new file. With it, the old binary ran normally. Better still, give every file with public top-level functions a &lt;code&gt;@file:JvmName&lt;/code&gt; from the first release.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. A new enum entry or sealed subclass
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="nf"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Level&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;LOW&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;HIGH&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1&lt;/span&gt;
&lt;span class="k"&gt;enum&lt;/span&gt; &lt;span class="nf"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Level&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="no"&gt;LOW&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;HIGH&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="no"&gt;CRITICAL&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; every &lt;code&gt;when&lt;/code&gt; expression that lists all the entries without an &lt;code&gt;else&lt;/code&gt; stops compiling:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;error: 'when' expression must be exhaustive. Add the 'CRITICAL' branch or an 'else' branch.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; run until the new value reaches one of those &lt;code&gt;when&lt;/code&gt; expressions, and then throw:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="n"&gt;kotlin&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NoWhenBranchMatchedException&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A new subclass of a &lt;code&gt;sealed&lt;/code&gt; class or interface behaves the same way: we added an &lt;code&gt;object Pending&lt;/code&gt; to a sealed &lt;code&gt;Result&lt;/code&gt; and got the same compile error and the same exception.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; decide up front whether a set of values is closed. If you expect to add cases, say so in the documentation and use a type that callers cannot match exhaustively, such as a regular interface. If the set is closed, adding a case is a major change.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A new property in a data class
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight kotlin"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1, with a default so existing code compiles&lt;/span&gt;
&lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;User&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;val&lt;/span&gt; &lt;span class="n"&gt;email&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; compile. &lt;code&gt;User("Ana")&lt;/code&gt; picks up the default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail. The constructor changed, and so did the generated &lt;code&gt;copy&lt;/code&gt; function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
0&lt;/p&gt;

&lt;p&gt;You can add the old constructor back as a secondary constructor, and the error moves to the next line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
1&lt;/p&gt;

&lt;p&gt;There is no way to keep the old &lt;code&gt;copy&lt;/code&gt;: Kotlin generates it from the primary constructor, and you cannot declare your own.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; don't expose data classes in a library's public API if they might grow. Kotlin's own &lt;a href="https://kotlinlang.org/docs/api-guidelines-backward-compatibility.html#avoid-using-data-classes-in-your-api" rel="noopener noreferrer"&gt;backward compatibility guidelines&lt;/a&gt; recommend the same. Use a regular class with explicit &lt;code&gt;equals&lt;/code&gt;, &lt;code&gt;hashCode&lt;/code&gt; and &lt;code&gt;toString&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  6. A return type that becomes nullable
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;br&gt;
2&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; fail wherever they use the result directly:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
3&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; run, because &lt;code&gt;String&lt;/code&gt; and &lt;code&gt;String?&lt;/code&gt; are the same type on the JVM. The caller trusts the old promise, and the &lt;code&gt;null&lt;/code&gt; travels until something uses it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
4&lt;/p&gt;

&lt;p&gt;That exception can appear far from the call that returned &lt;code&gt;null&lt;/code&gt;, which makes it hard to trace back to your release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; add a new function, such as &lt;code&gt;findNameOrNull&lt;/code&gt;, and keep the old one non-null. The opposite change, from &lt;code&gt;String?&lt;/code&gt; to &lt;code&gt;String&lt;/code&gt;, does not break code that calls the function, only classes that override it.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. A changed inline function
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'java.lang.String lib.LibKt.greet(java.lang.String)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
5&lt;/p&gt;

&lt;p&gt;Nothing fails. The body of an &lt;code&gt;inline&lt;/code&gt; function is copied into the caller when the caller is compiled. A client compiled against 1.0 and run with the 1.1 jar still retried 3 times. It is the Kotlin version of a changed Java constant.&lt;/p&gt;

&lt;p&gt;Bug fixes in an inline function don't reach code that was compiled before them, and two parts of one application can run two versions of the same function.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; keep public inline functions small and stable, and move the logic into a regular function that the inline one calls. That function can be marked &lt;code&gt;@PublishedApi internal&lt;/code&gt; if it should not be part of the API, but its signature then has to stay compatible, because inlined code calls it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The seven at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change in a minor release&lt;/th&gt;
&lt;th&gt;Recompiled callers&lt;/th&gt;
&lt;th&gt;Old binaries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;New parameter with a default&lt;/td&gt;
&lt;td&gt;Compile&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchMethodError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Renamed parameter&lt;/td&gt;
&lt;td&gt;Named calls fail&lt;/td&gt;
&lt;td&gt;Run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Top-level function moved to another file&lt;/td&gt;
&lt;td&gt;Compile&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoClassDefFoundError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New enum entry or sealed subclass&lt;/td&gt;
&lt;td&gt;Exhaustive &lt;code&gt;when&lt;/code&gt; fails&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoWhenBranchMatchedException&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New property in a data class&lt;/td&gt;
&lt;td&gt;Mostly compile&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchMethodError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Return type becomes nullable&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;NullPointerException&lt;/code&gt; later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changed inline function&lt;/td&gt;
&lt;td&gt;Get the new code&lt;/td&gt;
&lt;td&gt;Keep the old code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of them fails the library's own build. The library's tests are compiled with the new code, so they always match it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to catch them
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Kotlin/binary-compatibility-validator" rel="noopener noreferrer"&gt;binary-compatibility-validator&lt;/a&gt;: JetBrains' Gradle plugin. It writes the public binary API to a file that you commit, and fails the build when the API changes without the file being updated. It looks at the binary API, so source-only changes such as a renamed parameter are outside what it checks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://kotlinlang.org/docs/api-guidelines-backward-compatibility.html" rel="noopener noreferrer"&gt;Kotlin's backward compatibility guidelines&lt;/a&gt;: the official list of what to avoid, worth reading before a first release.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://gilware.com/bumpwise/" rel="noopener noreferrer"&gt;Bumpwise&lt;/a&gt;: our IntelliJ IDEA plugin. It compares the code in the editor with the last published release of your library and highlights breaking changes while you type, before the change is committed, and calculates the next version.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Disclosure: Gilware makes Bumpwise. Kotlin support is part of Bumpwise Team, the paid edition, which has a 30-day free trial.&lt;/p&gt;

&lt;h2&gt;
  
  
  Giveaway (closed)
&lt;/h2&gt;

&lt;p&gt;The giveaway of 5 × 12 months of Bumpwise Team ended on 29 November 2026. Thanks for reading. Bumpwise Team has a 30-day free trial if you want to try the Kotlin checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we checked
&lt;/h2&gt;

&lt;p&gt;For each change we compiled the 1.0 library, compiled a small client against it, compiled the 1.1 library, then ran the old client with the new jar and recompiled the client against 1.1. Kotlin 2.2.20, OpenJDK 25.0.5. The error messages above are copied from those runs. The &lt;code&gt;@JvmOverloads&lt;/code&gt;, &lt;code&gt;@file:JvmName&lt;/code&gt; and secondary constructor results were checked the same way.&lt;/p&gt;

&lt;p&gt;Found a mistake? Write to &lt;a href="mailto:hello@gilware.com"&gt;hello@gilware.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://gilware.com/bumpwise/kotlin-breaking-changes/" rel="noopener noreferrer"&gt;gilware.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>kotlin</category>
      <category>android</category>
      <category>jvm</category>
      <category>api</category>
    </item>
    <item>
      <title>Seven Java changes that pass your build and break your users</title>
      <dc:creator>Gilware</dc:creator>
      <pubDate>Tue, 10 Nov 2026 23:36:36 +0000</pubDate>
      <link>https://dev.to/gilwaredev/seven-java-changes-that-pass-your-build-and-break-your-users-3hmn</link>
      <guid>https://dev.to/gilwaredev/seven-java-changes-that-pass-your-build-and-break-your-users-3hmn</guid>
      <description>&lt;p&gt;Each change below compiles, passes the library's own tests and looks harmless in a code review. Each one breaks code that depends on the library, either when it is recompiled or, worse, when it runs against the new jar without being recompiled. We checked every example on Java 25.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways to break a caller
&lt;/h2&gt;

&lt;p&gt;A Java library can break its users in two different ways, and a change can break one without the other.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Source compatibility:&lt;/strong&gt; does the caller's code still compile against the new version?&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Binary compatibility:&lt;/strong&gt; does code that was compiled against the old version still run with the new jar?&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Binary compatibility matters more than it seems. When an application updates your library, it rarely recompiles the other libraries that use it. Those were compiled once, against your old version, and they keep calling it exactly as they did then. The Java Language Specification describes the rules in &lt;a href="https://docs.oracle.com/javase/specs/jls/se25/html/jls-13.html" rel="noopener noreferrer"&gt;chapter 13, Binary Compatibility&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In each example, version 1.0 is the release that callers use and 1.1 is the change. The error messages are the real ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. A wider parameter type
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="nf"&gt;twice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1: accepts more values, so it looks compatible&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;long&lt;/span&gt; &lt;span class="nf"&gt;twice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;long&lt;/span&gt; &lt;span class="n"&gt;x&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; compile. An &lt;code&gt;int&lt;/code&gt; argument widens to &lt;code&gt;long&lt;/code&gt; automatically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail. The JVM looks up a method by its exact descriptor, parameter and return types included:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'int Lib.twice(int)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; add the &lt;code&gt;long&lt;/code&gt; version as an overload and keep the &lt;code&gt;int&lt;/code&gt; one, delegating to the new method if you like.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A more general return type
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;List&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;names&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="nc"&gt;Collection&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nf"&gt;names&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; compile if they only use what &lt;code&gt;Collection&lt;/code&gt; has, such as &lt;code&gt;size()&lt;/code&gt; or a for loop, and fail if they assign the result to a &lt;code&gt;List&lt;/code&gt; or call &lt;code&gt;get(i)&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail, even the ones that only call &lt;code&gt;size()&lt;/code&gt;. The return type is part of the descriptor:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="n"&gt;java&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;NoSuchMethodError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'java.util.List Lib.names()'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; keep the return type. If the new type is the right one, add a new method under a new name and deprecate the old one.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A new method in an interface
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;Lib&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="nf"&gt;name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1, and the library now calls id()&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;interface&lt;/span&gt; &lt;span class="nc"&gt;Lib&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="nf"&gt;name&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="nf"&gt;id&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; every class that implements the interface stops compiling until it implements &lt;code&gt;id()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; load without any error. The failure comes later, at the first call to the missing method, which can be deep inside your library and long after startup:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.AbstractMethodError: Receiver class Client does not define or inherit
an implementation of the resolved method 'abstract java.lang.String id()' of interface Lib.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; give the new method a default implementation, for example &lt;code&gt;default String id() { return name(); }&lt;/code&gt;. Old implementations then keep working, compiled or not. Interfaces that callers only use and never implement can grow freely; say so in the documentation, or mark them with an annotation such as &lt;code&gt;@DoNotImplement&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Making a class final
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Lib&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1: "nobody should extend this"&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kd"&gt;final&lt;/span&gt; &lt;span class="k"&gt;class&lt;/span&gt; &lt;span class="nc"&gt;Lib&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; subclasses stop compiling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; a subclass compiled against 1.0 cannot even be loaded:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.IncompatibleClassChangeError: class Client cannot inherit from final class Lib
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Adding &lt;code&gt;final&lt;/code&gt; to a public or protected method breaks the classes that override it in the same way. Removing &lt;code&gt;final&lt;/code&gt; is always safe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; decide before the first release. If the class is already open, deprecate extension first and make it final in the next major version.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. A static method becomes an instance method
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight java"&gt;&lt;code&gt;&lt;span class="c1"&gt;// 1.0&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="c1"&gt;// 1.1&lt;/span&gt;
&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="nf"&gt;version&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; every &lt;code&gt;Lib.version()&lt;/code&gt; call stops compiling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; fail at the call. The opposite change, from instance to static, fails the same way:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.IncompatibleClassChangeError: Expected static method 'java.lang.String Lib.version()'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; add the instance method with a new name and keep the static one.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. A new checked exception
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'int Lib.twice(int)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recompiled callers:&lt;/strong&gt; fail, unless they already catch or declare the exception:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'int Lib.twice(int)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
1&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Old binaries:&lt;/strong&gt; run. The JVM does not check &lt;code&gt;throws&lt;/code&gt; clauses, so old callers get the exception at runtime without any code to handle it.&lt;/p&gt;

&lt;p&gt;This is the reverse of the first two changes: old jars keep working, and the break appears the next time a user upgrades and recompiles. It is still a breaking change, and it belongs in a major version.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; throw an unchecked exception, or add a new method that declares the checked one.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. A new value for a constant
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;java.lang.NoSuchMethodError: 'int Lib.twice(int)'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;br&gt;
2&lt;/p&gt;

&lt;p&gt;Nothing fails, and that is the problem. A &lt;code&gt;static final&lt;/code&gt; field of a primitive type or &lt;code&gt;String&lt;/code&gt;, set to a constant expression, is copied into the class files of the code that uses it when that code is compiled. Callers compiled against 1.0 keep using 10 with the 1.1 jar, until they are recompiled. We printed the field from a client compiled against 1.0 and run with the 1.1 jar: it printed &lt;code&gt;10&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So two parts of one application can disagree about the value, depending on when each part was compiled.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Instead:&lt;/strong&gt; if a value can change, don't make it a compile-time constant. Expose it through a method, or initialise the field in a way that is not a constant expression.&lt;/p&gt;

&lt;h2&gt;
  
  
  The seven at a glance
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change in a minor release&lt;/th&gt;
&lt;th&gt;Recompiled callers&lt;/th&gt;
&lt;th&gt;Old binaries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Wider parameter type&lt;/td&gt;
&lt;td&gt;Compile&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchMethodError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;More general return type&lt;/td&gt;
&lt;td&gt;Some fail&lt;/td&gt;
&lt;td&gt;&lt;code&gt;NoSuchMethodError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New abstract method in an interface&lt;/td&gt;
&lt;td&gt;Implementations fail&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;AbstractMethodError&lt;/code&gt; at the first call&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Class or method made final&lt;/td&gt;
&lt;td&gt;Subclasses fail&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;IncompatibleClassChangeError&lt;/code&gt; when loaded&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Static to instance, or back&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;td&gt;&lt;code&gt;IncompatibleClassChangeError&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New checked exception&lt;/td&gt;
&lt;td&gt;Fail&lt;/td&gt;
&lt;td&gt;Run, with no handler for it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;New constant value&lt;/td&gt;
&lt;td&gt;Get the new value&lt;/td&gt;
&lt;td&gt;Keep the old value&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of them fails the library's own build, and most of them get past at least one of the two checks. That is why they reach a release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why tests don't catch them
&lt;/h2&gt;

&lt;p&gt;The library's tests are compiled together with the new code, so they always match it. They test the library as it is now. What they cannot see is the code that was written, or compiled, against the version you released before.&lt;/p&gt;

&lt;p&gt;These are not rare cases either. A study of 119,879 library upgrades on Maven Central found a breaking change in 1 in 5 minor and patch upgrades (Ochoa et al., 2022). &lt;a href="https://gilware.com/bumpwise/semver-violations/" rel="noopener noreferrer"&gt;The numbers and their sources&lt;/a&gt; are in our report.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to catch them
&lt;/h2&gt;

&lt;p&gt;Compare your public API with the last release, not with your tests. Tools that do this for Java:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://siom79.github.io/japicmp/" rel="noopener noreferrer"&gt;japicmp&lt;/a&gt;: compares two jars and reports binary and source incompatibilities. It has a Maven plugin, and there are Gradle plugins for it.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://revapi.org/" rel="noopener noreferrer"&gt;Revapi&lt;/a&gt;: API analysis with configurable rules, for Maven and Gradle.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://github.com/Kotlin/binary-compatibility-validator" rel="noopener noreferrer"&gt;binary-compatibility-validator&lt;/a&gt;: for Kotlin libraries, built on a committed API dump.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;a href="https://gilware.com/bumpwise/" rel="noopener noreferrer"&gt;Bumpwise&lt;/a&gt;: our IntelliJ IDEA plugin. It compares the code in the editor with the last published release, highlights each breaking change while you type, offers the compatible alternative (such as keeping the old signature as &lt;code&gt;@Deprecated&lt;/code&gt;) and calculates the next version.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first three run in the build, usually in CI. Bumpwise runs before the change is committed. They work well together: one check while you write, one before you release.&lt;/p&gt;

&lt;p&gt;Disclosure: Gilware makes Bumpwise, a paid plugin with a free edition for Java libraries published on Maven Central.&lt;/p&gt;

&lt;h2&gt;
  
  
  How we checked
&lt;/h2&gt;

&lt;p&gt;For each change we compiled the 1.0 library, compiled a small client against it, compiled the 1.1 library, then ran the old client with the new jar and recompiled the client against 1.1. OpenJDK 25.0.5. The error messages above are copied from those runs.&lt;/p&gt;

&lt;p&gt;Found a mistake? Write to &lt;a href="mailto:hello@gilware.com"&gt;hello@gilware.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://gilware.com/bumpwise/java-breaking-changes/" rel="noopener noreferrer"&gt;gilware.com&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>java</category>
      <category>jvm</category>
      <category>api</category>
      <category>backend</category>
    </item>
  </channel>
</rss>
