Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Build #AI-183.4886.37.35.5215047, built on January 8, 2019
JRE: 1.8.0_152-release-1248-b22 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.3
The data binding documentation mentions implementing callbacks for listeners (
"If the event you are listening to returns a value whose type isn't void, your expressions must return the same type of value as well. For example, if you want to listen for the long click event, your expression should return a boolean."
If this rule is not followed, data binding cannot generate the view bindings with the following error:
error: cannot generate view binders java.lang.StackOverflowError
The full error is in the attached stacktrace.txt file.
The attached project illustrates this error. The correct implementation is commented out in MainActivity.kt.
It would be really helpful if the error message can mention which "view binders" cannot be generated. For someone beginning data binding, or if I created a whole bunch of listener implementations all at once, it might be a bit difficult to figure out which one is causing the error or how to fix it.