Re: Class.getRecordComponents security checks

2021-03-20 Thread Attila Szegedi
> On 2021. Feb 21., at 21:57, Remi Forax wrote: > > - Mail original - >> De: "Attila Szegedi" >> À: "core-libs-dev" >> Envoyé: Dimanche 21 Février 2021 21:14:48 >> Objet: Class.getRecordComponents security check

Re: Class.getRecordComponents security checks

2021-02-21 Thread Remi Forax
- Mail original - > De: "Attila Szegedi" > À: "core-libs-dev" > Envoyé: Dimanche 21 Février 2021 21:14:48 > Objet: Class.getRecordComponents security checks > Hey folks, > > Why are security checks for Class.getRecordComponents as strict

Class.getRecordComponents security checks

2021-02-21 Thread Attila Szegedi
Hey folks, Why are security checks for Class.getRecordComponents as strict as those for e.g. getDeclaredMethods? I would’ve expected they’d be as strict as those for e.g. getMethods. Specifically, the difference is the: > “the caller's class loader is not the same as the class loader of this cl