mesos/spark — pull request #548 by markhamstra (2013-03-31 05:26:03+00:00)
Title: Fixed broken filter in getWritableClass[T]

Here's one that we were getting away with. When filtering based on m.getReturnType().toString, the value that we need to test for is actually "class java.lang.Object", which means that the first part of the compound predicate wasn't doing anything. Neither does the second part, but I left that as is. The result was that the filter accomplished nothing, both apply methods were present in the resulting Array, and we were just lucky that the correct apply method was always at the zero offset. Or at least we were lucky. In Scala 2.10, the result of getDeclaredMethods is ordered differently than in 2.9.x, which meant that getWritableClass returned Object from the else clause instead of an appropriate Writable.