How can I make a JVM static function without using a companion object? GraalVM native image is being really funky with it and errors out.
h
Hanno
02/13/2022, 6:55 AM
Top level functions?
c
Coffee Guy
02/13/2022, 7:29 AM
@Hanno Nope.. Top level functions also fail
h
Hanno
02/13/2022, 8:31 AM
Whats the error? Top level fun compile to regular statics, so it must be an other issue i guess
👍 1
s
Strum355
02/13/2022, 1:39 PM
Isnt there a @JvmStatic annotation?
☝️ 1
g
gildor
02/15/2022, 2:51 PM
Even companion object compiles to a pretty standard JVM, it shouldn't cause problems for graalvm, if it does probably it's a bug and better report it to graalvm