[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    Re: [Compress] Pack200Exceptions on Old packed files
From:       Gary Gregory <garydgregory () gmail ! com>
Date:       2021-10-31 21:43:52
Message-ID: CACZkXPymp=MVZ-ZCqeCA1rONPqcof2ix_itYPQOpQSxSfgZ9Jg () mail ! gmail ! com
[Download RAW message or body]


Some sample pack200 files should also be part of tests.

Gary

On Thu, Oct 28, 2021, 10:16 Gary Gregory <garydgregory@gmail.com> wrote:

> You'll have to figure out the implementation details but I will be happy
> to review PRs on GitHub.
> 
> Gary
> 
> On Thu, Oct 28, 2021, 08:32 Eric Bresie <ebresie@gmail.com> wrote:
> 
> > 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 <garydgregory@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 <ebresie@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
> > > > Ebresie@gmail.com
> > > 
> > --
> > Eric Bresie
> > ebresie@gmail.com
> > 
> 



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic