You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jeff Hammerbacher (JIRA)" <ji...@apache.org> on 2014/11/11 08:46:33 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14206081#comment-14206081 ] 

Jeff Hammerbacher commented on SPARK-3647:
------------------------------------------

Should this issue have a Fix version set?

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