Skip to content

Commit

Permalink
SPARK-4660: Use correct class loader in JavaSerializer (copy of PR #3840
Browse files Browse the repository at this point in the history
 by Piotr Kolaczkowski)
  • Loading branch information
jacek-lewandowski committed Jan 20, 2015
1 parent e69fb8c commit a5e84ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private[spark] class JavaSerializerInstance(counterReset: Int, defaultClassLoade
}

override def deserializeStream(s: InputStream): DeserializationStream = {
new JavaDeserializationStream(s, Utils.getContextOrSparkClassLoader)
new JavaDeserializationStream(s, defaultClassLoader)
}

def deserializeStream(s: InputStream, loader: ClassLoader): DeserializationStream = {
Expand Down

0 comments on commit a5e84ca

Please sign in to comment.