Re: BC jdk15on 1.62 incompatible with JDK 8

Mondain <[email protected]> Tue, 6 Aug 2019 14:55:26 -0700
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <CAHQq8QKgndeviuo=EXSVLQfdHwHxT2Y0eXw=7aoEqYZ8Oo0ZeQ@mail.gmail.com>
Thanks for the link Andreas, glad to see I'm not the only person using BC
that cannot upgrade their JDK beyond 8 at the moment. I did find a
work-around for proguard btw using an inFilter and newer versions of
proguard / maven plugin.

On Tue, Aug 6, 2019 at 2:44 PM Andreas Schildbach <[email protected]>
wrote:

> This issue is tracked here:
>
> https://github.com/bcgit/bc-java/issues/512
>
>
> On 06/08/2019 23.26, Mondain wrote:
> > Its a breaking change when the bytecode / class version is set at 53.0
> > and one is compiling with proguard enabled with JDK 8. I'd like to avoid
> > hacky workarounds such as modifying a dependency jar during the build
> > process.
> >
> > Regards,
> > Paul
> >
> > On Tue, Aug 6, 2019 at 12:41 PM cryptearth <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hey Paul,
> >
> >     Project Jigsaw (module system) was introduced with Java 9 to build
> >     smaller footprint runtimes by only provide what's needed to execute.
> >     As any version below 9 just doesn't access the data you noted it
> >     would be no problem. You can try to just remove it - but I guess
> >     this might break the signature wich leads to the problem that it
> >     can't be used anymore (some internal java security stuff).
> >
> >     Matt
> >
> >     Am 06.08.2019 um 21:35 schrieb Mondain:
> >>     I got this in a build earlier today where its reporting a class in
> >>     the bcpkix-jdk15on jar having been built with JDK 9.
> >>
> >>      [proguard] java.io.IOException: Can't read
> >>
>  [/home/mondain/.m2/repo/org/bouncycastle/bcpkix-jdk15on/1.62/bcpkix-jdk15on-1.62.jar]
> >>     (Can't process class [META-INF/versions/9/module-info.class]
> >>     (Unsupported class version number [53.0] (maximum 52.0, Java 1.8)))
> >>
> >>     Is there somewhere that I should post an issue report? or could I
> >>     be mistaken here?
> >>
> >>     Regards,
> >>     Paul
> >>     --
> >>     http://gregoire.org/
> >>     https://github.com/Red5 <http://code.google.com/p/red5/>
> >
> >
> >
> > --
> > http://gregoire.org/
> > https://github.com/Red5 <http://code.google.com/p/red5/>
>


-- 
http://gregoire.org/
https://github.com/Red5 <http://code.google.com/p/red5/>