You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Ismael Juma (Jira)" <ji...@apache.org> on 2021/02/22 14:29:00 UTC

[jira] [Created] (KAFKA-12357) Do not inline methods from the scala package by default

Ismael Juma created KAFKA-12357:
-----------------------------------

             Summary: Do not inline methods from the scala package by default
                 Key: KAFKA-12357
                 URL: https://issues.apache.org/jira/browse/KAFKA-12357
             Project: Kafka
          Issue Type: Bug
            Reporter: Ismael Juma
            Assignee: Ismael Juma


As mentioned in [https://github.com/apache/kafka/pull/9548,] users currently use the kafka jar (`core` module) for integration testing and the current inlining behavior causes problems when the user's classpath contains a different Scala version than the one that was used for compilation.

An example error:
{quote}java.lang.NoClassDefFoundError: scala/math/Ordering$$anon$7
{quote}
We should not inline methods from the scala package by default, but we should make that easy for people who want to build an optimized kafka jar where they can ensure the scala library jar matches the one used for compilation (a reasonably common case).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)