[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [golo-dev] Strange behaviour when importing packages
|
Hum, strange. Probably an error in prefixing the classe when looking up
the method.
By the way, since you call (partially) qualified static methods, you can
just
import io.vertx.ext.web.handler
let staticHandler = StaticHandler.create()
and it should be fine.
Which Golo version do you use?
Philippe Charrière (2016-01-04 13:52):
> 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 :)
> _______________________________________________
> golo-dev mailing list
> golo-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/golo-dev
Attachment:
signature.asc
Description: PGP signature