permanently hidden warning in scala application

I encountered this warning after moving some classes from one package to another. I guess there was some conflict between the new location and binaries from the old location. In my case this helped:

sbt clean

I got this warning when my class was importing classes in the same package.

Once I removed the unnecessary import, the warnings were removed.


You probably have code that looks something like this:

object Hidden {
  import scala.collection.immutable
  object immutable { def x = 7 }
}

except in a less obvious way. You're importing something--in my example, the package immutable--and then you go and define something else with the same name that prevents you from using what you imported.

In particular, it looks like you tried to import SVNProperties into SVNResource.scala, except that SVNResource.scala defines its own SVNProperties which hides the import.

Tags:

Scala