You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/07/15 01:09:04 UTC

[jira] [Resolved] (SPARK-8962) Disallow Class.forName

     [ https://issues.apache.org/jira/browse/SPARK-8962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Reynold Xin resolved SPARK-8962.
--------------------------------
       Resolution: Fixed
         Assignee: Josh Rosen
    Fix Version/s: 1.5.0

> 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
>            Assignee: Josh Rosen
>             Fix For: 1.5.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org