I think that this is the similar to the issue that I'm running into.
if (current == null)
if (current == classOf[java.lang.Object])
Then, you'll get a more helpful error message: "Can't find field b from Foo". But this by itself doesn't fix the issue.
I haven't looked into a fix for the private field issue. However, I do have a fix for the issue with the interface. For that problem, ScalaSigReader#45 needs to be modified.
Currently if the field isn't found then the superclass is searched:
The interfaces must be searched as well:
findField(current, name) .orElse(current.getInterfaces.flatMap(findField(_, name)).headOption) .getOrElse(read(current.getSuperclass)) private def findField(clazz: Class[_], name: String): Option[MethodSymbol] = findField(findClass(clazz), name)
- Why does SonarQube find this issue (<static initializer for >() uses a Side Effect Constructor) with case and object class files?
- Can't find ScalaSig for class - json4s with scala + proguard for an android app
- Can't find ScalaSig for class java.lang.Object
- Can't find ScalaSig for class
- Java cannot find symbol for imported scala class
- Why can't sbt find main class in Java for run task?
- Scala: order of definition for companion object vs case class
- cannot find class manifest for element type T
- How do I write a JSON Format for an object in the Java library that doesn't have an apply method?
- In Scala, how can I define a companion object for a class defined in Java?
- How to access a Java static method from Scala given a type alias for that class it resides in
- How do I create an explicit companion object for a case class which behaves identically to the replaced compiler provided implicit companion object?
- Case class companion object generation error for compound type
- About Scala generics: cannot find class manifest for element type T
- Find type class instances for Shapeless HList
- Using Scala class defined in package object from Java
- Cannot find JsonWriter or JsonFormat type class for a case class
- Scala object extends Java class static field
- How to get the TypeTag for a class in Java
- Scala class cant override compare method from Java Interface which extends java.util.comparator
- Class parameter (generics) for singleton object
- How to find scala api documentation for string class
- automatically generate case object for case class
- What is a reliable way to find a Scala type's companion object via Java reflection?
- Find type class instance for Shapeless HList in Scalaz state monad
- Data Structures and Algorithms book in Java 5 or 6 or Scala for programmers and not a CS class textbook
- Scaladoc could not find any member to link for external Java library
- Defining object for case class
- Java client can't find master node: MasterNotDiscoveredException waited for [1m]
- Mongo-Scala-Driver: CodecConfigurationException: can't find a codec for class immutable.Document
More Query from same tag
- Akka-actor java.lang.NoClassDefFoundError: akka/actor/CoordinatedShutdown$$anonfun$totalTimeout
- How to check if URL is a valid link with play framework
- Groovy/Scala - Abort Early while iterating using an accumulator
- Cannot connect to Cassandra in spark-shell
- How to use node modules in Scala.js
- How do I check for equality using Spark Dataframe without SQL Query?
- Make scala map addition generic
- Is there a way to mock LocalDateTime timestamp using specs
- Can't create xml using the arguments
- Removing the Option type from a joined RDD
- Pass generic type to a generic method in scala
- Pass system property to spark-submit and read file from classpath or custom path
- How to return optional information from methods?
- Why does class name of a type in a package object contain "package" in runtime class name?
- Problems importing lib in Spark
- Scala to Java (functional programming)
- Scala-Ignite fetching data not working - Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/ignite/spark/IgniteDataFrameSettings$
- No execution context even when I have import ExecutionContex.global
- While running recorded simulation in Gatling, I got file not found error
- Problem with Printing Integers from Sorted Set in Scala
- Scala: Convert Json JObject to List
- Is there a command line program to lookup Scaladoc?
- List(1)#contains() returns `false`
- Higher order Functors in scala
- Play framework custom headers ignored
- Using Free Monad with Either
- Is there an example of using an hstore data structure with scalikejdbc and postgres?
- scala process with spaces not working correctly
- Scala Macros: "cannot create TypeTag from a type T having unresolved type parameters"
- Scala: NoSuchMethodException when invoking mutable.ArrayBuffer（List，Int)