GitHub user marmbrus opened a pull request:

    https://github.com/apache/spark/pull/526

    SPARK-1494 Don't initialize classes loaded by MIMA excludes, attempt 2

    [WIP]
    
    Looks like scala reflection was invoking the static initializer:
    ```
    ...
        at 
org.apache.spark.sql.test.TestSQLContext$.<init>(TestSQLContext.scala:25)
        at 
org.apache.spark.sql.test.TestSQLContext$.<clinit>(TestSQLContext.scala)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at 
scala.reflect.runtime.JavaMirrors$JavaMirror.javaClass(JavaMirrors.scala:500)
        at 
scala.reflect.runtime.JavaMirrors$JavaMirror.tryJavaClass(JavaMirrors.scala:505)
        at 
scala.reflect.runtime.SymbolLoaders$PackageScope.lookupEntry(SymbolLoaders.scala:109)
    ...
    ```
    
    Need to make sure that this change the exclusion semantics before merging.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/marmbrus/spark mima

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/526.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #526
    
----
commit afba262ee0e4086b9ce60cf832f24f2fa2daba67
Author: Michael Armbrust <[email protected]>
Date:   2014-04-24T07:20:46Z

    Prevent Scala reflection from running static class initializer.

commit 8168dea425b9d23bbd5d1aa28caf42500a48e01b
Author: Michael Armbrust <[email protected]>
Date:   2014-04-24T07:37:46Z

    Spurious change

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to