Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[golo-dev] Strange behaviour when importing packages

Hi

I'm playing with Golo and Vert.x:

import io.vertx.ext.web.handler.BodyHandler
import io.vertx.ext.web.handler.StaticHandler

function main = |args| {

let staticHandler = StaticHandler.create()

println(staticHandler: getClass(): getCanonicalName())
# io.vertx.ext.web.handler.impl.BodyHandlerImpl
}
staticHandler has not the appropriate type (BodyHandler instead of StaticHandler )
if  I revert order of import it's OK or if I write this : let staticHandler io.vertx.ext.web.handler.StaticHandler.create()

but the good news is that I can make directly vert.x web app with Golo :)

Back to the top