zhengruifeng opened a new pull request, #58112:
URL: https://github.com/apache/spark/pull/58112

   ### What changes were proposed in this pull request?
   
   This PR adds `-Xcheckinit` to Spark's Scala compiler options for both SBT 
and Maven builds.
   
   ### Why are the changes needed?
   
   `-Xcheckinit` instruments Scala code to detect reads of uninitialized vals 
at runtime. This helps
   catch problematic initialization-order patterns, such as eager trait 
initializers reading subclass
   fields before those fields have been initialized.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No.
   
   ### How was this patch tested?
   
   Not run. This is a build configuration change.
   
   `git diff --check`
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   Generated-by: OpenAI GPT-5 Codex
   


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