Archive::Zip::Member is missing desiredCompressionMethod

Open
#1,391 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
java, perl

Research direction

Inspect the bundled PerlOnJava Archive::Zip implementation where compressionMethod is registered for member objects, then compare the expected desiredCompressionMethod API described in the issue. Add a project-owned regression test for member compression selection and run IO-StructuredOutput-1.008 t/1.t on both JVM and interpreter backends to verify all 37 tests pass.

Written by the indexing model from the issue text.

Description

bug

Summary

IO-StructuredOutput-1.008 fails its complete upstream test suite on PerlOnJava because the bundled Archive::Zip::Member implementation does not provide the CPAN-compatible desiredCompressionMethod method.

CPAN evidence

  • Distribution: IO-StructuredOutput-1.008
  • Failing test: t/1.t
  • Archived CPAN tester run: 20260915-125610-17469
  • System Perl: PASS, 37/37 tests
  • PerlOnJava JVM backend: FAIL, 16/37 tests; exit status 255
  • PerlOnJava interpreter backend: FAIL, 16/37 tests; exit status 255

The system-Perl comparison was run in an isolated local library containing the target distribution and its missing pure-Perl dependencies. The full upstream test suite completed successfully there.

Failure

The test reaches the CSV-output case and then aborts when IO::StructuredOutput::output calls:

$member->desiredCompressionMethod(COMPRESSION_DEFLATED);

PerlOnJava reports:

Can't locate object method "desiredCompressionMethod" via package "Archive::Zip::Member"

The failure occurs in both execution backends and is reproducible with the dependency PERL5LIB overlay selected by the CPAN tester.

Expected behavior

Archive::Zip::Member should expose the compression-selection API expected by CPAN Archive::Zip, including desiredCompressionMethod, so the CSV output path completes and t/1.t passes all 37 tests.

Implementation evidence

The bundled PerlOnJava Archive::Zip implementation registers compressionMethod for member objects but does not register or implement desiredCompressionMethod. The Java-backed ZIP writer already supports stored and deflated compression methods, so this appears to be an API compatibility omission rather than an upstream or environment failure.

Environment

  • PerlOnJava commit: 1ac22252c2ed069829f8769b9ceeb14372cd163f
  • macOS Darwin arm64
  • OpenJDK 24.0.2
  • PerlOnJava reports Perl version 5.044001

Acceptance criteria

  • Add desiredCompressionMethod compatibility for Archive::Zip::Member.
  • Add a project-owned regression test covering member compression selection through the PerlOnJava implementation.
  • Verify IO-StructuredOutput-1.008 t/1.t passes on both JVM and interpreter backends.
Dominant language
Perl
Stars
64
Forks
6
Avg merge
5h 25m
Merged PRs (30d)
157

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fglock/PerlOnJava

All issues in fglock/PerlOnJava

Similar issues

More Perl issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.