olafurpg opened a new pull request #9548: URL: https://github.com/apache/kafka/pull/9548
Previously, the Scala compiler was configured to inline all usages of symbols in under the `scala` package. This is problematic because it means that published Kafka jars must run with the exact same version of the Scala library that the Kafka jar was compiled with. If the runtime uses a different version of the Scala library then users risk getting a crash like this: ``` java.lang.NoClassDefFoundError: scala/math/Ordering$$anon$7 ``` This commit disables inlining from the `scala` package to prevent crashes like this. The downside to this change is it may introduce performance regressions. ### Committer Checklist (excluded from commit message) - [x] Verify design and implementation - [x] Verify test coverage and CI build status - [x] Verify documentation (including upgrade notes) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org