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

supaham

08/26/2017, 1:43 PM
I'm using a library which gets
field#getCollectionType()
a collection's type but the code kotlin compiles keeps returning that class type as
java.lang.Object
. How do I fix this?
k

karelpeeters

08/26/2017, 2:27 PM
Can you show us the code?
s

supaham

08/26/2017, 2:48 PM
I changed my code, but it was simply a
var list: List<Foo> = listOf()
then [this](https://github.com/dumptruckman/PluginBase/blob/master/pluginbase-core/serializable-config/src/main/java/pluginbase/config/field/Field.java#L353) is invoked on the preceding field
@dumptruckman
4 Views