Re: RFR: 8267121: Illegal access to private "size" field of ArrayList from build.gradle

2021-05-17 Thread Johan Vos
On Sat, 15 May 2021 12:42:56 GMT, Kevin Rushforth wrote: > A test of our CI build with gradle 7.0.1 and JDK 16.0.1 revealed a latent bug > in `build.gradle` in the `fetchExternalTools()` method. It checks the size of > an `ArrayList` in two places, but rather than calling the `size()` method

Re: RFR: 8267121: Illegal access to private "size" field of ArrayList from build.gradle

2021-05-17 Thread Ambarish Rapte
On Sat, 15 May 2021 12:42:56 GMT, Kevin Rushforth wrote: > A test of our CI build with gradle 7.0.1 and JDK 16.0.1 revealed a latent bug > in `build.gradle` in the `fetchExternalTools()` method. It checks the size of > an `ArrayList` in two places, but rather than calling the `size()` method

RFR: 8267121: Illegal access to private "size" field of ArrayList from build.gradle

2021-05-15 Thread Kevin Rushforth
A test of our CI build with gradle 7.0.1 and JDK 16.0.1 revealed a latent bug in `build.gradle` in the `fetchExternalTools()` method. It checks the size of an `ArrayList` in two places, but rather than calling the `size()` method it omits the `()` which means it is accessing the private `size`