https://kotlinlang.org logo
#announcements
Title
# announcements
n

neworldlt

11/27/2017, 7:48 PM
Does somebody know, why kotlin can’t extend Groovy class, while Java can? It is a bug or feature? https://discuss.kotlinlang.org/t/extending-groovy-class-from-kotlin/1675
k

karelpeeters

11/27/2017, 8:01 PM
How is
MyGroovyClass
defined?
c

Czar

11/27/2017, 8:03 PM
this is quite strange I think we have some groovy classes extended by Kotlin without problems
Kotlin demands for implement GroovyObject, while java don’t
c

Czar

11/27/2017, 8:31 PM
It's not groovy object, it's AbstractTask's setProperty
n

neworldlt

11/27/2017, 8:34 PM
No, it isn’t. I tried extend
AbstractTask
right now, and it works
Also, IDE shows me, all methods missing implementation are from
GroovyObject
c

Czar

11/27/2017, 8:51 PM
It's late here, but I'm bookmarking this thread, wanna investigate when I've time tomorrow.
n

neworldlt

11/28/2017, 8:13 AM
No problem. If you need, I could make reproducible repo or provide any info for you.
3 Views