uschindler commented on issue #15292:
URL: https://github.com/apache/lucene/issues/15292#issuecomment-3950383546

   I think it can be done at some point using some "ServiceLoader" where 
instances are loaded in fixed order on a try-succeed-or-fail-try-next pattern.
   
   The good thing with that is: We won't need the MethodHandle-call-ctor code 
to allow instantiation accross compilation units. Basically the idea would be 
to list all serviceloaders, each has a priority (order of initialization) 
property to sort on and finally their initializer will check if all is sane for 
them (correct JVM version, all hotspot settings correct,...). If not sane, it 
will throw UnsupportedOperationException and then the serviceloader code will 
try next until one has initialized which is then assigned to the static 
property in base class.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to