Commit b0766aa
JavaAPI: add Thread.setDaemon/isDaemon (the real missing-wrapper cause)
The interactive demo's undefined virtual_java_lang_Thread_setDaemon was not a
reachability/devirtualization quirk: the JavaAPI java.lang.Thread simply had no
setDaemon method, so when an app reaches the port's capturePhoto path (the demo's
camera button does; the suite never does) the translator has no body to emit ->
undefined symbol. Any minimal app using camera/the async port paths would hit
this. Add setDaemon(boolean)/isDaemon() (store the flag) -- verified locally that
java_lang_Thread.c now emits both the body and the virtual wrapper, and
LinuxImplementation.c now includes the header. Drop the demo-launcher force.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 9d92594 commit b0766aa
2 files changed
Lines changed: 16 additions & 6 deletions
File tree
- vm
- JavaAPI/src/java/lang
- tests/src/test/java/com/codename1/tools/translator
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
100 | 116 | | |
101 | 117 | | |
102 | 118 | | |
| |||
Lines changed: 0 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | 111 | | |
118 | 112 | | |
119 | 113 | | |
| |||
0 commit comments