Skip to content

Commit ee380e0

Browse files
shai-almogclaude
andcommitted
Windows camera: drop Thread.setDaemon (not in the ParparVM runtime)
The clean (ParparVM) target has no java.lang.Thread.setDaemon, so the translated WindowsCameraImpl.c failed to compile (undeclared virtual_java_lang_Thread_setDaemon). The takePhoto worker exits as soon as the frame is captured, so a non-daemon thread is fine. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 4d57167 commit ee380e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Ports/WindowsPort/src/com/codename1/impl/windows/WindowsCameraImpl.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ public void run() {
147147
}
148148
}
149149
}, "cn1-windows-takephoto");
150-
t.setDaemon(true);
150+
// NB: no setDaemon -- java.lang.Thread.setDaemon is not in the clean
151+
// (ParparVM) runtime; the worker exits as soon as the frame is captured.
151152
t.start();
152153
}
153154

0 commit comments

Comments
 (0)