In this particular case, there were packed modules which had major / minor
versions not equal to the Major version 7 or minor version 150 supported in
the code.

This results in the exception, preventing it from unpacking.  The need is
to be able to unpack an older packed file.

As I understand it, some of this has to do with each version may handle
things a bit differently which may result in limited compatibility.  Not
sure if it’s keys on byte code level details or compression algorithms in
use or what.

How would the code need to be modified to support this?

Eric

On Tue, Oct 26, 2021 at 1:12 PM Gary Gregory <garydgreg...@gmail.com> wrote:

> There is not. The intent of the current code is simply to provide
> functionality that was dropped from the JRE.
>
> What newer versions and how are they different?
>
> Gary
>
>
> On Tue, Oct 26, 2021, 13:49 Eric Bresie <ebre...@gmail.com> wrote:
>
> > While trying to unpack an older generated pack file, it was noted that
> > Pack200Exceptions were getting raised due to the Major/Minor Version in
> > used which seems to be I this area.
> >
> >
> >
> https://github.com/apache/commons-compress/blob/master/src/main/java/org/apache/commons/compress/harmony/unpack200/SegmentHeader.java#L131-L155
> >
> > Is there an work to support newer versions?
> >
> > Eric Bresie
> > ebre...@gmail.com
>
-- 
Eric Bresie
ebre...@gmail.com

Reply via email to