Moneydance needs to leverage JDK 11.0.3+12 LTS to remove issue with non-US Locale Date parsing (dates using text values for months)

rapscallion's Avatar

rapscallion

20 Jun, 2019 05:09 PM

I have written an extension that needs to parse (transaction) dates in the form dd MMM yyyy (i.e. contains a textual name for the month) for multiple Locales. Although this works just fine in Eclipse and also in Moneydance with English short month names, i18N Moneydance integration fails because Moneydance packages JDK 11.0.1+13 which will not process non-English Locales properly. Example of month names using this JDK:
-- List of short months: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, ]
-- List of german short months: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, ]

You can test this using the following code:

// DateFormatSymbols in default Locale
final DateFormatSymbols dfs = new DateFormatSymbols();

// DateFormatSymbols in pre defined Locale
final DateFormatSymbols german_dfs = new DateFormatSymbols(Locale.GERMAN);

String[] shortMonths = dfs.getShortMonths();
System.out.print("List of short months: ");
System.out.println(Arrays.toString(shortMonths));

String[] germanShortMonths = german_dfs.getShortMonths();
System.out.print("List of german short months: ");
System.out.println(Arrays.toString(germanShortMonths));

I have replaced the packaged JDK in the Moneydance Application with 11.0.3+12-LTS (which I verified was running my code correctly in Eclipse) by using a symlink for the 'Home' directory. This now allows the extension to work as was designed and month names for alternate Locales now works as shown below:
-- List of short months: [Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec, ]
-- List of german short months: [Jan., Feb., März, Apr., Mai, Juni, Juli, Aug., Sep., Okt., Nov., Dez., ]

Please, can you repackage Moneydance using JDK 11.0.3+12-LTS at a minimum (although I suspect that the bug was fixed in 11.0.2 actually). Thanks in advance.

  1. 1 Posted by dwg on 20 Jun, 2019 09:30 PM

    dwg's Avatar

    I'm a fellow user.

    If you believe the issue was resolved in Java 11.0.2, the latest release of Moneydance 2019.3 build 1880 uses Java 11.0.2+9

  2. 2 Posted by rapscallion on 20 Jun, 2019 09:39 PM

    rapscallion's Avatar

    Hi and thanks for your note. I didn't test Java 11.0.2, so I cannot be certain.

    However, I am already using 2019.3.build 1880 and when I look at the packaged JDK (at runtime) by peeking at System properties, java.version was set to Java 11.0.1+13. How did you derive the use of 11.0.2?

  3. 3 Posted by dwg on 20 Jun, 2019 09:43 PM

    dwg's Avatar

    I opened the directory that Moneydance installed Java into and issued a "java -version" command.

  4. 4 Posted by rapscallion on 20 Jun, 2019 09:59 PM

    rapscallion's Avatar

    i should say that I am running on Mac OS, you?

  5. 5 Posted by dwg on 20 Jun, 2019 10:05 PM

    dwg's Avatar

    Windows

  6. 6 Posted by rapscallion on 17 Sep, 2019 04:40 PM

    rapscallion's Avatar

    will there be any resolution to this for Mac OS?

  7. Support Staff 7 Posted by Sean Reilly on 17 Sep, 2019 09:43 PM

    Sean Reilly's Avatar

    Hi Mike,

    Yes, I've just updated the build system so that we'll be using openjdk 13 for the next preview build. I'm still working on some behind-the-scenes changes and then will push that new preview build soon.

    Thanks!
    Sean

    --
    Sean Reilly
    Developer, The Infinite Kind
    https://infinitekind.com

  8. 8 Posted by rapscallion on 17 Sep, 2019 11:56 PM

    rapscallion's Avatar

    Hi Sean, Thanks, much appreciated! Regards, Mike.

  9. 9 Posted by rapscallion on 26 Oct, 2019 08:03 AM

    rapscallion's Avatar

    Any update on the new version availability?

  10. 10 Posted by derekkent23 on 26 Oct, 2019 11:57 AM

    derekkent23's Avatar

    I am not support staff, just a user.

    Preview build 2019.4(1892) is running on Java: 13 (Oracle Corporation).
    Download from
    https://infinitekind.com/preview

    Hope this helps

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

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