gnodet opened a new pull request, #11425:
URL: https://github.com/apache/maven/pull/11425

   The previous implementation cached field accessibility state globally, which 
could cause issues when the same field is accessed from different contexts or 
security managers. This was particularly problematic in plugin unit tests where 
fields would remain accessible after being set.
   
   The fix ensures that field accessibility is properly restored to its 
original state after setting field values, preventing accessibility state from 
leaking between different bean instances.
   
   Added unit tests to verify:
   - Field accessibility is restored after setting values
   - Multiple field accesses don't leak accessibility state
   - The fix works correctly across different bean instances
   
   This resolves the issue reported on the dev list regarding compiler plugin 
unit test failures related to field accessibility.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to