Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Gintautas Grigelionis
On Thu, 19 Aug 2021 at 12:01, Stefan Bodewig wrote: > I didn't mean the Antlib to be backwards compatible, but rather to offer > it and tell people to switch over to it. It would be the first time we'd > remove a core feature of Ant completely, though, so we may need to > discuss whether there

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Stefan Bodewig
On 2021-08-19, Jaikiran Pai wrote: > On 19/08/21 1:15 pm, Stefan Bodewig wrote: >> ... One migration option might be to offer an antlib containing the >> permissions stuff and deprecate the core types - and remove them from >> core once the next Java LTS version without SecurityManager arrives.

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Stefan Bodewig
On 2021-08-19, Jaikiran Pai wrote: > Hello Stefan, > On 19/08/21 1:15 pm, Stefan Bodewig wrote: >> At a cursory glance I only see JUnitTask and ExecuteJava deal with the >> SecurityManager if permissions have been defined. Where else do we use >> one? > From what I see in the Java task

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Jaikiran Pai
On 19/08/21 1:15 pm, Stefan Bodewig wrote: On 2021-08-05, Jaikiran Pai wrote: Ant project will be impacted by this. Ant provides a "permissions" type[1] whose whole goal is to integrate with the Java SecurityManager to allow users to configure the necessary security permissions. With the

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Jaikiran Pai
Hello Stefan, On 19/08/21 1:15 pm, Stefan Bodewig wrote: On 2021-08-05, Jaikiran Pai wrote: Ant project will be impacted by this. Ant provides a "permissions" type[1] whose whole goal is to integrate with the Java SecurityManager to allow users to configure the necessary security permissions.

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Stefan Bodewig
On 2021-08-05, Gintautas Grigelionis wrote: > The most acute problem is this: SecurityManager seems to be involved in > handling of return code from forked processes. > How does JDK 17+ solve that? JDK17 doesn't try to solve that as I understand it, the use-case of "prevent System.exit" has been

Re: Impact of Java SecurityManager being deprecated for removal post Java 17

2021-08-19 Thread Stefan Bodewig
On 2021-08-05, Jaikiran Pai wrote: > Ant project will be impacted by this. Ant provides a "permissions" > type[1] whose whole goal is to integrate with the Java SecurityManager > to allow users to configure the necessary security permissions. With > the SecurityManager and the APIs potentially