Your message dated Wed, 12 Jul 2023 06:42:56 +0000
with message-id <e1qjtyu-004pvt...@fasolo.debian.org>
and subject line Bug#1040270: fixed in plexus-compiler 2.12.1-2
has caused the Debian Bug report #1040270,
regarding plexus-compiler: Please support 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 ow...@bugs.debian.org
immediately.)


-- 
1040270: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1040270
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: plexus-compiler
Severity: wishlist
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu mantic ubuntu-patch
X-Debbugs-Cc: vladimir.pe...@canonical.com

Dear Maintainer,

Java 21 no longer supports release level 7. The attached patch changes auto-
adjust-language-level.patch to use release level 8 when Java 21 is used. It
still keeps 7 for the previous Java releases.

Changes:
  * d/p/auto-adjust-language-level.patch: Use release level 8 for Java 21.

Thanks for considering the patch.


-- System Information:
Debian Release: bookworm/sid
  APT prefers lunar-updates
  APT policy: (500, 'lunar-updates'), (500, 'lunar-security'), (500, 'lunar'), 
(100, 'lunar-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.2.0-24-generic (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
diff -Nru 
plexus-compiler-2.12.1/debian/patches/auto-adjust-language-level.patch 
plexus-compiler-2.12.1/debian/patches/auto-adjust-language-level.patch
--- plexus-compiler-2.12.1/debian/patches/auto-adjust-language-level.patch      
2022-10-03 05:19:36.000000000 +1300
+++ plexus-compiler-2.12.1/debian/patches/auto-adjust-language-level.patch      
2023-06-30 17:01:58.000000000 +1200
@@ -3,11 +3,11 @@
 Forwarded: not-needed
 --- 
a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
 +++ 
b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
-@@ -208,6 +208,23 @@
+@@ -208,6 +208,29 @@
          }
      }
  
-+    private static boolean isJava21()
++    private static boolean isAtLeastJava21()
 +    {
 +        try
 +        {
@@ -21,23 +21,24 @@
 +
 +    private static String getMinRelease()
 +    {
-+        return isJava21() ? "8" : "7";
++        return isAtLeastJava21() ? "8" : "7";
++    }
++
++    private static boolean isUnsupportedRelease(String version)
++    {
++        final List<String> unsupportedLanguageLevels = 
java.util.Arrays.asList(new String[]{"1.1", "1.2", "1.3", "1.4", "1.5", "5", 
"1.6", "6", "1.7", "7" });
++        return unsupportedLanguageLevels.contains( version ) && !( 
getMinRelease().equals( version ) );
 +    }
 +
      public String[] createCommandLine( CompilerConfiguration config )
          throws CompilerException
      {
-@@ -375,10 +392,20 @@
-             args.add( "-Werror" );
-         }
- 
-+        List<String> unsupportedLanguageLevels = java.util.Arrays.asList(new 
String[]{"1.1", "1.2", "1.3", "1.4", "1.5", "5", "1.6", "6", "1.7", "7" });
-+
+@@ -378,7 +401,15 @@
          if ( !StringUtils.isEmpty( config.getReleaseVersion() ) )
          {
              args.add( "--release" );
 -            args.add( config.getReleaseVersion() );
-+            if ( unsupportedLanguageLevels.contains( 
config.getReleaseVersion() ) && 
!(getMinRelease().equals(config.getReleaseVersion()))  )
++            if ( isUnsupportedRelease( config.getReleaseVersion() ) )
 +            {
 +                System.err.println( "Use of release " + 
config.getReleaseVersion() + " is no longer supported, switching to " + 
getMinRelease() );
 +                args.add( getMinRelease() );
@@ -49,14 +50,14 @@
          }
          else
          {
-@@ -387,7 +414,13 @@
+@@ -387,7 +418,13 @@
              {
                  // Required, or it defaults to the target of your JDK (eg 1.5)
                  args.add( "-target" );
 -                args.add( "1.1" );
 +                args.add( getMinRelease() );
 +            }
-+            else if ( unsupportedLanguageLevels.contains( 
config.getTargetVersion() ) )
++            else if ( isUnsupportedRelease( config.getTargetVersion() ) )
 +            {
 +                System.err.println( "Use of target " + 
config.getTargetVersion() + " is no longer supported, switching to " + 
getMinRelease() );
 +                args.add( "-target" );
@@ -64,16 +65,16 @@
              }
              else
              {
-@@ -399,7 +432,13 @@
+@@ -399,7 +436,13 @@
              {
                  // If omitted, later JDKs complain about a 1.1 target
                  args.add( "-source" );
 -                args.add( "1.3" );
 +                args.add( getMinRelease() );
 +            }
-+            else if ( !suppressSource( config ) && 
unsupportedLanguageLevels.contains( config.getSourceVersion() ) )
++            else if ( !suppressSource( config ) && isUnsupportedRelease( 
config.getSourceVersion() ) )
 +            {
-+                System.err.println( "Use of source " + 
config.getSourceVersion() + " is no longer supported, switching to 7" );
++                System.err.println( "Use of source " + 
config.getSourceVersion() + " is no longer supported, switching to " + 
getMinRelease() );
 +                args.add( "-source" );
 +                args.add( getMinRelease() );
              }

--- End Message ---
--- Begin Message ---
Source: plexus-compiler
Source-Version: 2.12.1-2
Done: tony mancill <tmanc...@debian.org>

We believe that the bug you reported is fixed in the latest version of
plexus-compiler, 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 1040...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
tony mancill <tmanc...@debian.org> (supplier of updated plexus-compiler 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Tue, 11 Jul 2023 21:02:00 -0700
Source: plexus-compiler
Architecture: source
Version: 2.12.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers 
<pkg-java-maintain...@lists.alioth.debian.org>
Changed-By: tony mancill <tmanc...@debian.org>
Closes: 1040270
Changes:
 plexus-compiler (2.12.1-2) unstable; urgency=medium
 .
   * Team upload
   * Support for Java 21 (Closes: #1040270)
     Thank you to Vladimir Petko for the patch.
   * Bump Standards-Version to 4.6.2 (no changes)
   * Set Rules-Requires-Root: no in debian/control
   * Update copyright format uri
   * Update debian/watch format to version 4
Checksums-Sha1:
 1cd0f3687cdcf87cef5d423676957df84188e3df 2405 plexus-compiler_2.12.1-2.dsc
 a7ba8a45d7595318bf0b8365ed38927763109955 6948 
plexus-compiler_2.12.1-2.debian.tar.xz
 faa950ce754e8749c9bdc91436a9655479b26fb1 13841 
plexus-compiler_2.12.1-2_amd64.buildinfo
Checksums-Sha256:
 4da562a1e3f17eb532ec3fe47bb884cee8b1d1a33a89ff4a58ee409c97e17d52 2405 
plexus-compiler_2.12.1-2.dsc
 b3d252b6ff2a72b2f7602018c360aef70c944b465b982541e41669480f06675e 6948 
plexus-compiler_2.12.1-2.debian.tar.xz
 acf15257c3b9588a7e9c08f3eeac5b25051cd5a8a0da53645c1144f2974a901a 13841 
plexus-compiler_2.12.1-2_amd64.buildinfo
Files:
 696981942392e58af9efd975b96c61e2 2405 java optional 
plexus-compiler_2.12.1-2.dsc
 16d2e8fe2390313543c0269c6da87c6f 6948 java optional 
plexus-compiler_2.12.1-2.debian.tar.xz
 ad34a777b38e48d23a3e63688c3c411c 13841 java optional 
plexus-compiler_2.12.1-2_amd64.buildinfo

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

iQJIBAEBCgAyFiEE5Qr9Va3SequXFjqLIdIFiZdLPpYFAmSuJ4MUHHRtYW5jaWxs
QGRlYmlhbi5vcmcACgkQIdIFiZdLPpbBlQ/+JC87gKbcjiV6UDApc3p+1fF8mH3B
ptW6YF2/c3+Zou2MuAI7LgNAdFKqlK9vdL5/EocUL5p5U4a8LZdrSzqXFiSHlW3A
eVC2zsoRNELCAH/vk9IiuRLJI1x/sx2rcrq6JO6PupJbthdLQTcFGNHtMSyqw5GN
AyEtuz5mdibHwwFfqHk/56dRvkBCCuwbr9ABdpgUKb8Ml3YXl9rcZApAiVwF0x25
SR4m4TC0HjJS68vcD7Tu6EpBXdwXdwsXPXMCJZEzL6tYJTTL9bLX6v6Diq5+euJk
xxlzkToMqieD36viPY9wATTOAIAhceFwrSEawrRGuca8tqViY/xKnshwAmdM99R8
wKTQ7Ghgmk+908c+7L+x9+cxAEoUBIIw+V+tEMjj2R+US/sesmHej1Oatmj2iMva
m8RaLdp8K2PGF1Et2PJ3J8ioh1orQENqLMntd/SaUUl6Mh/yqmFN3JJCuQrpGhAl
4B6nNAsfOae2rPu5OXU/nsM9fnSSrIuE88jASVS7lh8bW3iNI0/0Aaios+3zHr9W
ogKeKlu78xnr8ViZTyYrwv6pvxFTRdoET5+zkwaA0Iowu/LUCNQpdhmft/tJNHFi
PKgDy4mMHwdChtsNZccUm8DfcddWAK4ix6DqFfqYnxH2tBx90qnrWUFT87AzDUiQ
4+wPSRd6jZMEoqw=
=cbSC
-----END PGP SIGNATURE-----

--- End Message ---
__
This is the maintainer address of Debian's Java team
<https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-java-maintainers>.
 Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to