Skip to content

Invalid module descriptor in 3.1.11 #7906

Description

@InitAuther97

In RxJava 3.1.11, the archive published to maven central contains an invalid module-info.class; its module version changed to "" in this release but in 3.1.10 it's still null.
An empty version string is not allowed by java.lang.module.ModuleDescriptor.Version implementation, though it is valid not to provide one. This may lead to corruption when some application tries to parse its module info.

temurin-21, jdk.internal.module.ModuleInfo#readModuleAttribute(DataInput, ConstantPool, int)

        int module_version_index = in.readUnsignedShort();
        if (module_version_index != 0) {
            String vs = cpool.getUtf8(module_version_index);
            builder.version(vs);
        }

ModuleDescriptor.Version documentation:
https://docs.oracle.com/javase/9/docs/api/java/lang/module/ModuleDescriptor.Version.html

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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