You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Andrew Ash (JIRA)" <ji...@apache.org> on 2014/11/11 09:12:34 UTC

[jira] [Updated] (SPARK-3647) Shaded Guava patch causes access issues with package private classes

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

Andrew Ash updated SPARK-3647:
------------------------------
    Fix Version/s: 1.2.0

> Shaded Guava patch causes access issues with package private classes
> --------------------------------------------------------------------
>
>                 Key: SPARK-3647
>                 URL: https://issues.apache.org/jira/browse/SPARK-3647
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.2.0
>            Reporter: Marcelo Vanzin
>            Assignee: Marcelo Vanzin
>            Priority: Critical
>             Fix For: 1.2.0
>
>
> The patch that introduced shading to Guava (SPARK-2848) tried to maintain backwards compatibility in the Java API by not relocating the "Optional" class. That causes problems when that class references package private members in the Absent and Present classes, which are now in a different package:
> {noformat}
> Exception in thread "main" java.lang.IllegalAccessError: tried to access class org.spark-project.guava.common.base.Present from class com.google.common.base.Optional
> 	at com.google.common.base.Optional.of(Optional.java:86)
> 	at org.apache.spark.api.java.JavaUtils$.optionToOptional(JavaUtils.scala:25)
> 	at org.apache.spark.api.java.JavaSparkContext.getSparkHome(JavaSparkContext.scala:542)
> {noformat}



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