scala - Warning in Play 2.0.4 -
when compile application securesocial plugin gives me warning:
[info] compiling 21 scala sources , 8 java sources /home/mario/tegik-play/target/scala-2.9.1/classes... [warn] /home/mario/tegik-play/app/controllers/templatesplugin.scala:21: imported `application' permanently hidden definition of object application in package controllers [warn] import play.api.{logger, plugin, application} [warn] ^ [warn] 1 warning found
i'm new scala, have pointer this?
when using application
, compiler choose 1 got in current package, controllers
, instead of play.api.application
; means importing latter useless.
in other words: definition of controllers.application
hides definition of play.api.application
.
to silence warning, don't import play.api.application
, , use full name:
import play.api.{logger, plugin} ... val foo = play.api.application.bar
Comments
Post a Comment