Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #12697

Re: Updating source/target level for Java 21 compatibility to 8

Path csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod
From Vladimir Petko <vladimir.petko@canonical.com>
Newsgroups linux.debian.maint.java
Subject Re: Updating source/target level for Java 21 compatibility to 8
Date Mon, 25 Sep 2023 04:20:01 +0200
Message-ID <HhJmx-blAY-1@gated-at.bofh.it> (permalink)
References <HdH9E-8Ogh-21@gated-at.bofh.it> <HdV2W-8Wtk-7@gated-at.bofh.it> <He2xs-90TL-17@gated-at.bofh.it>
X-Original-To Emmanuel Bourg <ebourg@apache.org>
X-Mailbox-Line From debian-java-request@lists.debian.org Mon Sep 25 02:18:10 2023
Old-Return-Path <vladimir.petko@canonical.com>
X-Amavis-Spam-Status No, score=-9.501 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no
X-Policyd-Weight using cached result; rate: -5.5
X-Gm-Message-State AOJu0YxjU5C9d2aOzBtV7Uem1esw213Ri2JUsZhdYlLt8QNGEgkbEX0A uagEfv5WeJGB74y+TZY67bs7+SFebzy0U+CBa2MyAz6yd+NEOqpBSwBvHFizzwXb7TJ2pd8/6tJ wirQST5VrWCSPmety5e+uh7EPGRx1mQ0wfCqO8fnvTWU0VGSSvIcPox3lFE5165Yke9oT
X-Received by 2002:a25:361a:0:b0:d7a:f5c7:5ac2 with SMTP id d26-20020a25361a000000b00d7af5c75ac2mr2755360yba.2.1695608261548; Sun, 24 Sep 2023 19:17:41 -0700 (PDT)
X-Google-SMTP-Source AGHT+IGCrgE0IFWlNl23HJhgrwUNemASq1jAkAiGw238HNam1T5+zOcOasqU3dwPyTKs3AKtfXmTJGlGwtTpXLaFIBQ=
X-Received by 2002:a25:361a:0:b0:d7a:f5c7:5ac2 with SMTP id d26-20020a25361a000000b00d7af5c75ac2mr2755350yba.2.1695608261199; Sun, 24 Sep 2023 19:17:41 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Mailing-List <debian-java@lists.debian.org> archive/latest/23379
List-ID <debian-java.lists.debian.org>
List-URL <https://lists.debian.org/debian-java/>
List-Archive https://lists.debian.org/msgid-search/CALFf3kcY+MwaUjTj7hC49PYYWd4SZSfj+SibgxnCbkmnqDstoA@mail.gmail.com
Approved robomod@news.nic.it
Lines 89
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc debian-java@lists.debian.org
X-Original-Date Mon, 25 Sep 2023 15:17:30 +1300
X-Original-Message-ID <CALFf3kcY+MwaUjTj7hC49PYYWd4SZSfj+SibgxnCbkmnqDstoA@mail.gmail.com>
X-Original-References <CALFf3kfXrnOA2d2kV8UPkyBPoWCCsSBjna+vtRUC6xf1n3dYPA@mail.gmail.com> <6a078d6bed965e90952d7cae31a28610@apache.org> <CALFf3kfCFjFodpO93ov416UaG6+iYBQCyUL_F6DsQ-5Z9PUaww@mail.gmail.com>
Xref csiph.com linux.debian.maint.java:12697

Show key headers only | View raw


Hi,

I have prepared a script[1] to report the obvious failures here[2]. I
wonder if I should send a mass bug filing email to debian-devel
mailing list before running it?

Best Regards,
 Vladimir.

[1] https://git.launchpad.net/~vpa1977/+git/default-java21/tree/report-all.sh?h=main
[2] https://git.launchpad.net/~vpa1977/+git/default-java21/tree/?h=main

On Fri, Sep 15, 2023 at 9:54 AM Vladimir Petko
<vladimir.petko@canonical.com> wrote:
>
> Hi,
>
> >For the previous Java migrations I started with a mass rebuild and then
> filling a bug report for each broken package.
> Thank you!!! I will follow the suite then - in addition to hardcoded
> targets, there are about 93 packages with various compile errors
> including javadoc issues.
>
> >Interesting idea. Where would that variable be declared? In debhelper?
> >Will the maintainers agree?
>
> Yes, it has to be in the common code, e.g. debhelper, but adding
> something specific to Java to it might not be a good solution.
>
> >As a side note, bumping the source/target level isn't always the best
> solution.These packages are a
> recurrent source of issues when migrating to more recent JDKs, and they
> are almost never used.
>
> Maybe I can raise bugs for those and then the decision can be made on
> a case by case basis?
>
> Best Regards,
>  Vladimir.
>
> On Fri, Sep 15, 2023 at 1:52 AM Emmanuel Bourg <ebourg@apache.org> wrote:
> >
> > Le 2023-09-14 01:03, Vladimir Petko a écrit :
> >
> > > Java 21 removes source/target compatibility level 7. Some packages (8
0
> > > in total as per the attached list) have it specified in rules or
> > > Makefiles.
> > > I was wondering if it is okay to raise a single bug to update them and
> > > submit the changes as pull requests on Salsa.
> >
> > For the previous Java migrations I started with a mass rebuild and then
> > filling a bug report for each broken package. The reports had a user tag
> > to be able to follow the progress (and document the main issues
> > encountered).
> >
> > Here is for example the bug list for the migration to Java 17:
> >
> >
> > https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=default-java17;users=debian-java@lists.debian.org
> >
> > Personally I find it satisfying to see the list shrinking over time,
> > I also hoped that it would entice new contributors to join the migration
> > effort (but it barely materialized, if at all). But as long as the work
> > is done it doesn't really matter how it is organized.
> >
> >
> > > Also, we could add a DEB_ variable to specify the minimal supported
> > > level. The variable will allow us to avoid repeating this work in the
> > > future, but I am not sure what is the best way to provide it.
> >
> > Interesting idea. Where would that variable be declared? In debhelper?
> > Will the maintainers agree?
> >
> > As a side note, bumping the source/target level isn't always the best
> > solution. For example olap4j breaks when building the Javadoc, in this
> > case I recommend scrapping the -java-doc package. These packages are a
> > recurrent source of issues when migrating to more recent JDKs, and they
> > are almost never used.
> >
> > Emmanuel Bourg
> >

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Updating source/target level for Java 21 compatibility to 8 Vladimir Petko <vladimir.petko@canonical.com> - 2023-09-14 01:10 +0200
  Re: Updating source/target level for Java 21 compatibility to 8 Emmanuel Bourg <ebourg@apache.org> - 2023-09-14 16:00 +0200
    Re: Updating source/target level for Java 21 compatibility to 8 Vladimir Petko <vladimir.petko@canonical.com> - 2023-09-15 00:00 +0200
      Re: Updating source/target level for Java 21 compatibility to 8 Vladimir Petko <vladimir.petko@canonical.com> - 2023-09-25 04:20 +0200
        Re: Updating source/target level for Java 21 compatibility to 8 Emmanuel Bourg <ebourg@apache.org> - 2023-09-25 11:20 +0200

csiph-web