arusevm commented on PR #2214:
URL: https://github.com/apache/karaf/pull/2214#issuecomment-4046822203

   Hi @holgerfriedrich @jbonofre,
   
   I've got here some ugly patches that seem to make the Subject-related stuff 
work on java 25.
   
   Basically, there's an issue with that in 25, Subject.callAs() and current() 
use a ScopedValue and its binding "gets lost" across "thread-boundaries", of 
which there are a bunch :) It gets ugly, because every time you do something 
like ExecutorService.submit() you have to also "pass" the current Subject. Gets 
even worse, because Gogo needs a similar treatment...
   
   Anyway, wondering if it might help if I share what we've got here with 
you... or if you already have something like it? Or if I might help in some 
other way? :)


-- 
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