[
https://issues.apache.org/jira/browse/SPARK-8962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14623067#comment-14623067
]
Apache Spark commented on SPARK-8962:
-------------------------------------
User 'JoshRosen' has created a pull request for this issue:
https://github.com/apache/spark/pull/7350
> Disallow Class.forName
> ----------------------
>
> Key: SPARK-8962
> URL: https://issues.apache.org/jira/browse/SPARK-8962
> Project: Spark
> Issue Type: Sub-task
> Components: Project Infra
> Reporter: Josh Rosen
>
> We should add a regex rule to Scalastyle which prohibits the use of
> {{Class.forName}}. We should not use Class.forName directly because this
> will load classes from the system's default class loader rather than the
> appropriate context loader. Instead, we should be calling Utils.classForName
> instead.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]