Closed jonpryor closed 1 year ago
Related: https://github.com/nih-at/libzip/issues/235#issuecomment-801744361
It looks like libzip -- justifiably! -- doesn't want to support "possibly invalid files".
.jmod
support was implemented without needing libZipSharp changes: https://github.com/xamarin/Java.Interop/commit/8ccb8374d242490d8d1b032f2c8ca7a813fd40f3
Closing…
Context: https://stackoverflow.com/a/64202720
JDK 9 added a new
.jmod
file format, which appears to be "normal ZIP" with a{ 4a 4d 01 00 }
file header. These files are able to be ready byunzip -l
.For example, if you have a xamarin-android build environment, then you have a JDK 11 provisioned, which contains
.jmod
files:unzip
is also able to extract the file contents:Odd that
unzip
sets an error exit code, though…. The file does exist:Regardless, attempting to process this file with LibZipSharp results in an error: