]> git.ipfire.org Git - thirdparty/gettext.git/commit
xgettext: Java: Remove unjustified warning "'}' found where ')' was expected". 0.25.x
authorBruno Haible <bruno@clisp.org>
Tue, 30 Sep 2025 22:04:45 +0000 (00:04 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 1 Oct 2025 02:13:17 +0000 (04:13 +0200)
commited7cdb4574751f12657174ff57f99f554ea4928c
treeb1abec3a5f6db19f4e099df28cbc119d17031b01
parenta201299dbdda4c171cb7288d8e94cac9a1397742
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