<div dir="ltr">Dear all,<br><br>I have a strange thing here in JavaFX - and I seek some guidance, what to do.<br><br>I am searching for the source code of javafx.scene.control.TextInputControl.TextProperty#doSet of "javafx-controls-21-win.jar".<br><br>Using a decompiler, the method reads as follows (shortended):<br><br><br>private void doSet(String var1) {<br>...<br>    if (TextInputControl.this.filterAndSet(var1)) {<br>...<br>        TextInputControl.this.textUpdated();<br>        TextInputControl.this.resetUndoRedoState();<br>    }<br>}<br><br><br>I checked the source on GitHub at <a href="https://github.com/openjdk/jfx/blob/72701e6cb4095b8f5042f54ae6bb2c0cec446bcf/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L1511">https://github.com/openjdk/jfx/blob/72701e6cb4095b8f5042f54ae6bb2c0cec446bcf/modules/javafx.controls/src/main/java/javafx/scene/control/TextInputControl.java#L1511</a>:<br><br><br>private void doSet(String value) {<br>...<br>       if (!filterAndSet(value)) return;<br>...<br>        textUpdated();<br>...<br>   resetUndoRedoState();<br>}<br><br><br>I assume that the Java compiler does not do some "smart" optimizations. Thus, the binary is different from the source somehow.<br><br><br>Can someone explain me what is happening here? Why is the decompiled source different from the Java source?<br><br><br>TYIA and cheers,<br><br>Oliver<br></div>