wangzhigang1999 opened a new pull request, #7769:
URL: https://github.com/apache/kyuubi/pull/7769

   ### Why are the changes needed?
   
   Several reflective loading paths can initialize or construct a class before 
checking its expected type.
   
   Use a shared type check before initialization or construction for exception 
reconstruction and provider, plugin, strategy, and JDBC driver loading. Keep 
the existing constructor selection and exception reconstruction for supported 
classes.
   
   ### How was this patch tested?
   
   - 23 targeted tests passed across common, JDBC client, server, and Data 
Agent modules, including checks that rejected classes are not initialized or 
constructed.
   - Manual checks confirmed missing-dependency error wrapping for session 
advisors, group providers, and Data Agent providers.
   - Spotless and `git diff --check` passed.
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: Codex (GPT-6)
   


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