Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Locale.ENGLISH for date formatters #32

Merged
merged 2 commits into from Oct 17, 2021

Conversation

Flowdalic
Copy link
Member

No description provided.

Fixes

> Task :jxmpp-core:compileJava FAILED
/home/flo/data/code/jxmpp/jxmpp-core/src/main/java/org/jxmpp/util/ArraysUtil.java:31: error: An unhandled exception was thrown by the Error Prone static analysis plugin.
        public static <T> T concatenate(T arrayOne, T arrayTwo) {
                            ^
     Please report this at https://github.com/google/error-prone/issues/new and include the following:

     error-prone version: 2.3.3
     BugPattern: TypeParameterUnusedInFormals
     Stack Trace:
     java.lang.NoSuchFieldError: bound
        at com.google.errorprone.bugpatterns.TypeParameterUnusedInFormals.matchMethod(TypeParameterUnusedInFormals.java:71)
        at com.google.errorprone.scanner.ErrorProneScanner.processMatchers(ErrorProneScanner.java:433)
        at com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:725)
        at com.google.errorprone.scanner.ErrorProneScanner.visitMethod(ErrorProneScanner.java:150)
        at jdk.compiler/com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:898)
        at jdk.compiler/com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82)
        at com.google.errorprone.scanner.Scanner.scan(Scanner.java:71)
        at com.google.errorprone.scanner.Scanner.scan(Scanner.java:45)
        at jdk.compiler/com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90)
        at jdk.compiler/com.sun.source.util.TreeScanner.scan(TreeScanner.java:105)
Fixes that jxmpp would return a locale specific date string, e.g. in
MAM queries, like ١٢T١٦:٥١:٣٩.٢٢٢+00:00 (arabic locale).

Reported-by: Artem Verhovod
@Flowdalic Flowdalic changed the title Data format locale fix Set Locale.ENGLISH for date formatters Oct 13, 2021
@Flowdalic Flowdalic merged commit 9f70af1 into igniterealtime:1.0 Oct 17, 2021
@Flowdalic Flowdalic deleted the data-format-locale-fix branch October 17, 2021 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant