New security weirdness

I tried to create a new security in one of my accounts today. When I typed in the Security Name, it doesn't advance to the next letter, but simply overwrites the first letter over and over again. If I skip that step and put in the Ticker Symbol and Price, it will eventually let me type in the Name.
Never happened before. I've closed and reopened the app a few times and the same thing happens. Any ideas?
Mac OS 26.7.1 MD ver. 2024.4 build 5253.

  1. It’s a long standing Java bug. In any text field if you select all then type you end up trapped in a one character looping hell. Click elsewhere in the field and type and it’s ok. This has been around for years.

  2. Thanks.

  3. This doesn't happen in all fields. But certainly in a lot of them. @Stuart, has a Java Bug been filed? This certainly has been around for awhile in moneydance but I don't see any other reports of such a bug. This should be wide spread with a lot of complaints. Do you have a java bug number?

    Is MD somehow resetting the textfield length when selecting all and hitting delete?

    If this behavior only appears in MD then it seems that MD is the common issue? This seems to have been in every version of Java since 2015 or so?

    -sth

  4. The Java bug is JDK-8319880, "JTextField text selection doesn't stop if ended during loss of window focus".

    • Where it is: in Java's own Swing text field (javax.swing), not in Moneydance. It's still unresolved, but there's a fix in review: openjdk/jdk PR #28582.
    • Versions: Java 8, 11, 17, 21 and 22 are all affected, which is why it has been around for years. It has been seen on both Windows and Mac.
    • What happens: the field keeps thinking a mouse-drag selection is still going on after the button is let go. Each character you type then gets selected and overwritten by the next one. That's exactly "it overwrites the first letter over and over".
    • The fix for the user: clicking in the field clears it, as you said.
    

    The Mac report is JDK-8325052, "JTextField text selection locked after using mouse to select text (right-to-left)". It's closed as a duplicate of JDK-8319880, and it was reproduced only on macOS (Sonoma and Monterey). Its trigger is selecting with the mouse from right to left, including the first character, then typing quickly. JDK-8370002 is another Mac duplicate of the same thing.

    Sources:

    • JDK-8319880
    • JDK-8325052
    • JDK-8370002
    • JDK-8311949
    • openjdk/jdk PR #28582
    
  5. Well, I just spent all day re-researching this issue again. The facts above stand. With one exception, I discovered today that JetBrains' own JDK has fixed this issue in their repackaged version of java.

    Refer: https://youtrack.jetbrains.com/issue/JBR-5762
    https://github.com/JetBrains/JetBrainsRuntime/commit/c3cf8bddea970e...

    and also re-proven the issue and the workarounds/fixes... so I have just updated the Oracle bug report with exact details, and if they accept it, I might even be able to submit the fix..

    Separately, I've spoken to Sean again and he is thinking up a plan to get the fix into MD2027....

  6. Stuart, the whole MoneyDance community is lucky to have you and a few other deeply dedicated folks helping shape and refine so much! Thank you.

  7. It is a frustrating long term Java bug, it would be nice to have a fix. Echoing @jonathan, the community is lucky to have you to help in many ways.

  8. @Stuart B. Thank you, thank you, thank you. In reading the details, it seems that there was a windows/Mac issue and that the windows issue was fixed, but the Mac issue was different and not fixed. But the problem was marked as resolved. And the issue dropped.

    Thanks for resubmitting the Mac bug along with details of the source of the problem and a fix! If I read the notes correctly it will be fixed in Java 25 as the target version for the fix? Which is the version used in MD Alpha.

    Glad to have a real Java programmer around, I just an old school functional C programmer!

  9. Not quite. It is not yet scheduled for a Java fix.

  10. For what it's worth, today I submitted the fix to Oracle. Let's see...

    https://github.com/openjdk/jdk/pull/33778

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions