Scalap and javap showing different method signature

I have a very strange problem, I have a maven dependency in my project

<dependency>
  <groupId>org.apache.spark</groupId>
  <artifactId>spark-core_2.11</artifactId>
  <version>2.0.0</version>
</dependency>

      

And this is the class org.apache.spark.ui.WebUI

I am using from this dependency and it has one method with signature

def getHandlers : scala.Seq[org.eclipse.jetty.servlet.ServletContextHandler] = { /* compiled code */ }

      

but when i execute my program its failing with an exception . NoSuchMethodError

So, I started digging it a little. when i decompile my jar with scalap it shows me above the signature, but when i decompile with javap option it shows different.

public scala.collection.Seq<org.spark_project.jetty.servlet.ServletContextHandler> getHandlers();

      

+3


source to share





All Articles