Marcelo Vanzin created SPARK-3647: ------------------------------------- Summary: 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 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org