Richard Gomez

Results 129 comments of Richard Gomez

> My personal opinion is that you shouldn't use `companion object` for this use case and prefer, instead, top-level functions and constants To my knowledge, companion objects + `@JvmStatic` annotations...

This will be fixed in 4.1.0, per #329.

@desmondtzq @mustafakibar To my knowledge there is no way to do this in 1.2.x as interfaces are not allowed to have `@JvmStatic` members. **However, support for this is added in...

@raghumulukutla A [change](https://github.com/vert-x3/vertx-lang-kotlin/issues/93#issuecomment-450584439) introduced in Vert.x 3.6.x inadvertently broke this. I [created a pull request](https://github.com/vert-x3/vertx-codegen/pull/229) to fix this—hopefully it makes it into the next release, or a viable workaround is...

@raghumulukutla Can you provide a reproducer? I do not get the error in version 3.5.4. Try this ad-hoc example: https://github.com/rgmz/vertx-kotlin-service-proxy

> Is extension function a possible workaround? So that we won't need to setup companion object Unfortunately Kotlin does not support static extension functions; in order to call `create` you'd...

> @raghumulukutla A [change](https://github.com/vert-x3/vertx-lang-kotlin/issues/93#issuecomment-450584439) introduced in Vert.x 3.6.x inadvertently broke this. > > I [created a pull request](https://github.com/vert-x3/vertx-codegen/pull/229) to fix this—hopefully it makes it into the next release, or a...

Based on my initial research, [it does not appear possible to differentiate `List` and `MutableList`](https://stackoverflow.com/a/52591274/6050382). :disappointed: > ...Compile-time references to List and MutableList are both compiled to java.util.List references. Therefore,...

I'm trying to think of a good method name that wouldn't conflict with the spec. Perhaps `boolean wasCached` or `boolean cacheHit`?

Using the [Vert.x Maven Plugin](https://reactiverse.io/vertx-maven-plugin/#using-the-plugin) you can define the main verticle in `pom.xml` as such: ``` io.vertx.guides.wiki.MainVerticle ``` and then run it (with or without hot redeploy) using `mvn vertx:run`.