]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Java: Remove unjustified warning "'}' found where ')' was expected".
authorBruno Haible <bruno@clisp.org>
Tue, 30 Sep 2025 22:04:45 +0000 (00:04 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 30 Sep 2025 22:04:45 +0000 (00:04 +0200)
commit7546f94840ad2ac9a60a6cfdf35114b6360b1692
tree907b8c899a6ca76027872be5fa961db6f87334c6
parent032b007feaa88e793530f7ed438d1a793f4765e3
xgettext: Java: Remove unjustified warning "'}' found where ')' was expected".

Reported by Alexander Hubmann-Haidvogel <ahubmann@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-09/msg00000.html>
and by Bjoern Voigt <bjoernv@arcor.de> in
<https://lists.gnu.org/archive/html/bug-gettext/2025-09/msg00023.html>.

* gettext-tools/src/x-java.c (extract_parenthesized): When a semicolon is seen
inside braces, start a new argparser instead of returning.
* gettext-tools/tests/xgettext-java-1: Add test cases with inner classes.
gettext-tools/src/x-java.c
gettext-tools/tests/xgettext-java-1