Skip to content

kotlinx-coroutine-debug jar seems incorrectly packaged exposing bytebuddy module instead of kotlinx.coroutine.debug module #3944

Closed
@ArchangelX360

Description

Describe the bug

kotlinx-coroutine-debug jar exposes bytebuddy module instead of kotlinx.coroutine.debug module.
module-info.java of kotlinx.coroutine.debug seems to be ignored.

$ titouan.bion@NVC00231 ~/Downloads curl -s https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-debug/1.7.3/kotlinx-coroutines-debug-1.7.3.jar -o kotlinx-coroutines-debug-1.7.3.jar && jar --describe-module --file kotlinx-coroutines-debug-1.7.3.jar --release 9
releases: 9

net.bytebuddy jar:file:///Users/titouan.bion/Downloads/kotlinx-coroutines-debug-1.7.3.jar!/META-INF/versions/9/module-info.class
exports net.bytebuddy
exports net.bytebuddy.agent.builder
exports net.bytebuddy.asm
exports net.bytebuddy.build
exports net.bytebuddy.description
exports net.bytebuddy.description.annotation
exports net.bytebuddy.description.enumeration
exports net.bytebuddy.description.field
exports net.bytebuddy.description.method
exports net.bytebuddy.description.modifier
exports net.bytebuddy.description.type
exports net.bytebuddy.dynamic
exports net.bytebuddy.dynamic.loading
exports net.bytebuddy.dynamic.scaffold
exports net.bytebuddy.dynamic.scaffold.inline
exports net.bytebuddy.dynamic.scaffold.subclass
exports net.bytebuddy.implementation
exports net.bytebuddy.implementation.attribute
exports net.bytebuddy.implementation.auxiliary
exports net.bytebuddy.implementation.bind
exports net.bytebuddy.implementation.bind.annotation
exports net.bytebuddy.implementation.bytecode
exports net.bytebuddy.implementation.bytecode.assign
exports net.bytebuddy.implementation.bytecode.assign.primitive
exports net.bytebuddy.implementation.bytecode.assign.reference
exports net.bytebuddy.implementation.bytecode.collection
exports net.bytebuddy.implementation.bytecode.constant
exports net.bytebuddy.implementation.bytecode.member
exports net.bytebuddy.jar.asm
exports net.bytebuddy.jar.asm.commons
exports net.bytebuddy.jar.asm.signature
exports net.bytebuddy.matcher
exports net.bytebuddy.pool
exports net.bytebuddy.utility
exports net.bytebuddy.utility.privilege
exports net.bytebuddy.utility.visitor
requires java.base mandated
requires java.instrument static
requires jdk.unsupported static
requires net.bytebuddy.agent static

For example for kotlinx-coroutines-core-jvm, it is kotlinx.coroutines.core module, as expected:

$ titouan.bion@NVC00231 ~/Downloads curl -s https://repo1.maven.org/maven2/org/jetbrains/kotlinx/kotlinx-coroutines-core-jvm/1.7.3/kotlinx-coroutines-core-jvm-1.7.3.jar -o kotlinx-coroutines-core-jvm-1.7.3.jar && jar --describe-module --file kotlinx-coroutines-core-jvm-1.7.3.jar --release 9
releases: 9

kotlinx.coroutines.core jar:file:///Users/titouan.bion/Downloads/kotlinx-coroutines-core-jvm-1.7.3.jar!/META-INF/versions/9/module-info.class
exports kotlinx.coroutines
exports kotlinx.coroutines.channels
exports kotlinx.coroutines.debug
exports kotlinx.coroutines.debug.internal
exports kotlinx.coroutines.flow
exports kotlinx.coroutines.flow.internal
exports kotlinx.coroutines.future
exports kotlinx.coroutines.internal
exports kotlinx.coroutines.intrinsics
exports kotlinx.coroutines.scheduling
exports kotlinx.coroutines.selects
exports kotlinx.coroutines.stream
exports kotlinx.coroutines.sync
exports kotlinx.coroutines.time
requires java.base mandated
requires java.instrument static
requires jdk.unsupported static
requires kotlin.stdlib transitive
uses kotlinx.coroutines.CoroutineExceptionHandler
uses kotlinx.coroutines.internal.MainDispatcherFactory

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions