Feedback
Runtime error when a control name collides with a method name
- Status
- Fixed
- Fixed in
- v26.6.4
- Source discussion
- https://forum.objo.dev/d/374-runtimeerror-button
- Last updated
- 2026-06-15
Public summary
Desktop projects can allow a visual designer control to have the same name as a method on the same window or container. Calling that method from a control event can instead resolve to the generated control property and fail at runtime with RuntimeException: Can only call functions and classes. The compiler should report the member name collision before Run/Build.