Hey Guys, can I help with this? I'm not familiar with the TOMEE code base but I'm glad to help in some way. Thanks.
El lun, 20 sept 2021 a las 5:21, Zowalla, Richard (< [email protected]>) escribió: > Thanks for the additional hint. It fixes the test, but I still think, > that we should make a permanent (code-based) fix ;) > > I have created a related JIRA: > > - https://issues.apache.org/jira/browse/TOMEE-3795 > > In addition, it looks like > > - https://issues.apache.org/jira/browse/TOMEE-2744 > > is another thingy for J16 / J17. > > Perhaps we should create a tracking issue (JDK17 compatibility) to > aggregate the different issues to tackle. > > Am Montag, dem 20.09.2021 um 07:45 -0300 schrieb Thiago Henrique > Hupner: > > The easy fix is to replace the illegal access to - - add-opens and - > > - > > add-exports. > > > > The exception message includes which one is required. > > > > Em seg., 20 de set. de 2021 07:34, Zowalla, Richard < > > [email protected]> escreveu: > > > > > I think that's the approach taken by the guys at deltaspike in > > > Thomas' > > > link [1] (and the related PR in [2]). > > > > > > [1] https://issues.apache.org/jira/browse/DELTASPIKE-1432 > > > [2] https://github.com/apache/deltaspike/pull/119 > > > > > > Am Montag, dem 20.09.2021 um 11:09 +0100 schrieb Jonathan > > > Gallimore: > > > > I had a very quick look - I wonder if we simply need to move to > > > > MethodHandles.Lookup.defineClass(): > > > > > > > > https://docs.oracle.com/javase/9/docs/api/java/lang/invoke/MethodHandles.Lookup.html#defineClass-byte:A- > > > > in the LocalBeanProxyFactory. There's likely a couple of other > > > > libraries > > > > that TomEE uses that do similar things, such as OWB and OpenJPA, > > > > so > > > > we'll > > > > need to check that they do the right thing in Java 17 as well. > > > > > > > > Jon > > > > > > > > On Mon, Sep 20, 2021 at 9:08 AM Zowalla, Richard < > > > > [email protected]> wrote: > > > > > > > > > Hi ladies, > > > > > > > > > > I wanted to start a discussion about TomEE and its Java 17 > > > > > compatibility. > > > > > > > > > > I did some tests in one of our demo projects It looks like that > > > > > " > > > > > --illegal-access=permit" was removed in Java 17, which leads to > > > > > some InaccessibleObjectException [1]. > > > > > > > > > > Does anybody know, if there are solutions / workarounds for it > > > > > in > > > > > Java > > > > > 17 or do we need to fix it? If so: how? ;) > > > > > > > > > > I bet, that many other frameworks / containers will run in this > > > > > issue, > > > > > so maybe someone already thought about a possible solution? > > > > > Discussion > > > > > seems to be "hot" [2]. > > > > > > > > > > Gruss > > > > > Richard > > > > > > > > > > > > > > > [1] > > > > > https://gist.github.com/rzo1/5c1d0724a700e262a2e2824ded9f32ab > > > > > [2] https://twitter.com/delabassee/status/1438446396865224705 > > > > > > > > > > > > > > > >
