MobiVM / robovm

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

* workaround: idea debugger doesn't stop in Inner classes that extends from ObjCObject #754

Closed dkimitsa closed 9 months ago

dkimitsa commented 9 months ago

Root case:

ObjCClass preloads all instances of ObjCObject to find out if these have NativeObject annotations. As result inner class might be loaded before hosting class. This makes Idea debugger not happy and it ignores CLASS_PREPARE event and doesn't apply breakpoints to it. https://youtrack.jetbrains.com/issue/IDEA-332794

Workaround

Lets preload host classes before all ObjCObject classes.

NB: affects only debug builds