Feedback on proposal for #ReflectiveAccessToNonExportedTypes
    Simon Nash 
    simon at cjnash.com
       
    Sat Jul  9 16:26:57 UTC 2016
    
    
  
Alan Bateman wrote:
> On 09/07/2016 09:57, Simon Nash wrote:
> 
>>
>> Is it really a good idea to encourage packages that currently use 
>> reflection
>> to access non-exported private fields (an official part of the Java 
>> API) to
>> change to using internal APIs?  This seems like a step backwards to me.
> I didn't suggest that. I was just pointing out that some of the 3rd 
> party serialization libraries that we've come across are based on Unsafe 
> and ReflectionFactory and the latter is specifically on critical 
> internal API for that reason.
> 
> -Alan
> 
Yes, I understand.  My point was that these APIs might in some cases
become a substitute for reflective access to non-exported private fields
if the latter is prohibited,
  Simon
    
    
More information about the jigsaw-dev
mailing list