Your message dated Sun, 18 Aug 2024 10:33:58 +0000
with message-id <[email protected]>
and subject line Bug#1053206: fixed in antlr-maven-plugin 2.2-6
has caused the Debian Bug report #1053206,
regarding antlr-maven-plugin fails with UnsupportedOperationException with Java 
21
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1053206: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1053206
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: antlr-maven-plugin
X-Debbugs-Cc: [email protected]
Version: 2.2-5
Severity: important

Dear Maintainer,

src/main/java/org/codehaus/mojo/antlr/AbstractAntlrMojo.java sets
SecurityManager in order to catch System.exit() call.

This causes packages using it fail to build with the following message:
----
[ERROR] Failed to execute goal org.codehaus.mojo:antlr-maven-
plugin:2.2:generate (default) on project checkstyle: Execution default of goal
org.codehaus.mojo:antlr-maven-plugin:2.2:generate failed: The Security Manager
is deprecated and will be removed in a future release -> [Help 1]
-----

because setSecurityManager() throws UnsupportedOperationException if
java.security.manager property is not set.

The attached patch adds UnsupportedOperationException to the catch statement
that bypasses the issue as the plugin already allows setSecurityManager() to
fail.
--- a/src/main/java/org/codehaus/mojo/antlr/AbstractAntlrMojo.java
+++ b/src/main/java/org/codehaus/mojo/antlr/AbstractAntlrMojo.java
@@ -337,7 +337,7 @@
             oldSm = System.getSecurityManager();
             System.setSecurityManager( NoExitSecurityManager.INSTANCE );
         }
-        catch ( SecurityException ex )
+        catch ( UnsupportedOperationException | SecurityException ex )
         {
             // ANTLR-12
             oldSm = null;

--- End Message ---
--- Begin Message ---
Source: antlr-maven-plugin
Source-Version: 2.2-6
Done: Pierre Gruet <[email protected]>

We believe that the bug you reported is fixed in the latest version of
antlr-maven-plugin, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pierre Gruet <[email protected]> (supplier of updated antlr-maven-plugin package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 18 Aug 2024 12:16:07 +0200
Source: antlr-maven-plugin
Architecture: source
Version: 2.2-6
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<[email protected]>
Changed-By: Pierre Gruet <[email protected]>
Closes: 1053206
Changes:
 antlr-maven-plugin (2.2-6) unstable; urgency=medium
 .
   * Team upload
   * Catching UnsupportedOperationException thrown by setSecurityManager, thanks
     to Vladimir Petko (Closes: #1053206)
   * Raising Standards version to 4.7.0:
     - Setting Rules-Requires-Root: no
   * Raising d/watch version to 4
   * Removing auto-generated d/README.source file
Checksums-Sha1:
 4fcda88e21f02985b3c7ca5742dac0d32bc6fa1d 2513 antlr-maven-plugin_2.2-6.dsc
 0d65219798b934b20a77baebbec0562d80c6be12 5344 
antlr-maven-plugin_2.2-6.debian.tar.xz
 c058da2a0eac7bea144aee060dbc120aedc123a4 14842 
antlr-maven-plugin_2.2-6_source.buildinfo
Checksums-Sha256:
 88ce2b45fba9eb1d846ca90977cf65fa289b8f1e4356a4eec6c4501c44aafbe4 2513 
antlr-maven-plugin_2.2-6.dsc
 c330653b75c61f384aaa321f43c3c1fd6eb5b3f429fe349e09e0d5c4235e99ee 5344 
antlr-maven-plugin_2.2-6.debian.tar.xz
 7f3e69c4b44760f82e4a9e16c384991f6c7a8cf1d6afa422c45a5ddcaefa651c 14842 
antlr-maven-plugin_2.2-6_source.buildinfo
Files:
 5ac8d829de8409b5e185a3e97dd3685d 2513 java optional 
antlr-maven-plugin_2.2-6.dsc
 6abc2499831fab7fcde090bd68f09e78 5344 java optional 
antlr-maven-plugin_2.2-6.debian.tar.xz
 33e762ef7da876d5e3f88ccade410b2c 14842 java optional 
antlr-maven-plugin_2.2-6_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEM8soQxPpC9J9y0UjYAMWptwndHYFAmbByhMACgkQYAMWptwn
dHYNqQ//UeRAgNj9Bwz4nafp5MVgyDC+GZQO9rV7XDPTfZliKFfc+XJgqvjPLr7B
R6b8iH+zowIEJPzjqZb+j1zcO5S07ESicjYccivLDpD52keopNITDNlCWzVc2e0D
2m4QuqmtnygAeA7nnYgGE9mWcnuucScQobs8vAgVUWd2BFY/F4RMAKXFtX5UqSNH
h+jQ3dwDrOcouBaHwSqdsQ1lWNZO5VUh8525F3lkHYSzlZFUUhXhd6C3WfHPPbvn
5ZK+eFyXxKioFZf4TYbP1fXASPQDnp0OlqZ2cmtcrZo0UnmtLLcxqwacA8vk6sJG
jufZAB19YWbBPNWLrbOSLc0g9US1u1+PNOdTxMgSUDWoTxHdK5+kad7lFK1HqLrd
M+P/zYxaFrG9rUJvUWfEdvyRFd/vjWaI7o8agbEcge+L98zgjQpIRvu0E73G9ntg
kAkyxRxzFhYJyQBsfuoQyiLyrPh2oTjGx/iBu8nVoT5IyvkJYZVpVYR68RK9hpPj
tJP//7VMqTbLjQXeYVd0D2z/zScv39CswaAzuWQUQ+pLZ04vZYAcuHxBTSmF5nUs
TFg91vySubzhMOiad4JX5aDi6KoOX5uX0UWdxNjexpedHO53E+DbBXO/sWTjno/S
EZs9Wsc+mxw6ylSQiM2S4aNCZiTMnoYmxx6IMzwIsvn2UbMAu/A=
=a/Ch
-----END PGP SIGNATURE-----

Attachment: pgpW8POtpVQ_9.pgp
Description: PGP signature


--- End Message ---

Reply via email to