-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Closed
Description
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