MobiVM / robovm

Ahead of time compiler for JVM bytecode targetting iOS, Mac OSX and Linux
https://mobivm.github.io
966 stars 133 forks source link

* clinit accessor for private static field: to support JEP181(java11) #725

Closed dkimitsa closed 1 year ago

dkimitsa commented 1 year ago

In case of Java11 there is no accessor for private static fields are being generated and Nested classes access fields of Nested host directly. #653 added support for this but it fails for static fields as corresponding clinit wrapper wasn't generated. It cased linker failure with message:

[ERROR] 11:52:48.616 Undefined symbols for architecture arm64: [ERROR] 11:52:48.616 "_[j]org.package.ImportDialog.lastScrollY(F)[set][clinit]", referenced from: