frankyin-factual commented on pull request #29069: URL: https://github.com/apache/spark/pull/29069#issuecomment-656954497
I think the default one uses `ObjenesisInstantiator` which uses `StdInstantiatorStrategy` that goes pretty deep in vendor-specific JVM. I switched them to use `ConstructorInstantiator` which just uses plain java reflection to do object instantiation. If the mock `.class` generated has interface `MockAccess`, this is certainly the safest route to construct such instance. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org