Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12357

Do not inline methods from the scala package by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.8.0
    • None
    • None

    Description

      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:

      java.lang.NoClassDefFoundError: scala/math/Ordering$$anon$7

      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).

      Attachments

        Issue Links

          Activity

            People

              ijuma Ismael Juma
              ijuma Ismael Juma
              Chia-Ping Tsai Chia-Ping Tsai
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: