Re: Java 17 and support for jython

Jeff Allen <[email protected]> Mon, 5 Jun 2023 09:20:40 +0100
Newsgroups gmane.comp.lang.jython.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============6754508055412691046==
Content-Type: multipart/alternative;
 boundary="------------CRfaeDdRY4rC6kZHZ0r0haNX"

This is a multi-part message in MIME format.
--------------CRfaeDdRY4rC6kZHZ0r0haNX
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Jython 2 is built with Java 8 and tested with Java 8 and Java 11.

The backwards compatibility of Java versions is very high. The byte code 
is stable. What varies slightly is the Java API, where methods may have 
been removed, or others overloaded in ways that affect exactly which is 
found during a call.

I ran the regression tests on an installed 2.7.3 with Java 17. The 
expected result is explained here:

https://jython-devguide.readthedocs.io/en/latest/release_jy.html#installation-regrtest

With Java 17 I got an additional failure from test_httplib that is to do 
with header data not expected by the test. That may well be satisfactory 
for your application. You'll do your own tests, of course, and can 
repeat ours fairly easily.

There may be a 2.7.4 this year, and it may be tested with Java 17, but 
an eventual Jython 3 will get most of the time.

Jeff

On 04/06/2023 13:24, Oti wrote:
> It starts:
>
> *➜**~*java -version
>
> openjdk version "17.0.7" 2023-04-18
>
> OpenJDK Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)
>
> OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, 
> sharing)
>
> *➜**~*java -jar ~/Downloads/jython-standalone-2.7.3.jar
>
> Jython 2.7.3 (tags/v2.7.3:5f29801fe, Sep 10 2022, 18:52:49)
>
> [OpenJDK 64-Bit Server VM (Eclipse Adoptium)] on java17.0.7
>
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>>
>
>
>
> Best wishes,
> Oti.
>
>
>
> On Wed, May 31, 2023 at 10:15 PM Anamitra Bhattacharyya via 
> Jython-users <[email protected]> wrote:
>
>     havent tested it yet - we were contemplating a move to java 17 -
>     and since the https://www.jython.org/download for 2.7.3 only lists
>     java 8 and 11 - was not sure if there was another version that
>     would be released for java 17. Not sure if anyone here have tried
>     with java 17 - and any issues with jython 2.7.3 on that.
>     Downloads <https://www.jython.org/download>
>     The Python runtime on the JVM
>     www.jython.org <http://www.jython.org>
>
>
>
>     thanks
>     Anamitra Bhattacharyya
>     Maximo STSM
>     IBM Master Inventor
>     ------------------------------------------------------------------------
>     *From:* Chris Clark <[email protected]>
>     *Sent:* Wednesday, May 31, 2023 4:00 PM
>     *To:* Anamitra Bhattacharyya <[email protected]>;
>     [email protected]
>     <[email protected]>
>     *Subject:* [EXTERNAL] RE: Java 17 and support for jython
>     Are you saying it’s not working? Worth opening a ticket if that’s
>     the case with detailed error/test case. From: Anamitra
>     Bhattacharyya via Jython-users
>     <jython-users@ lists. sourceforge. net> Sent: Wednesday, May 31,
>     2023 11: 50
>     ZjQcmQRYFpfptBannerStart
>     This Message Is From an External Sender
>     This message came from outside your organization.
>     ZjQcmQRYFpfptBannerEnd
>
>     Are you saying it’s not working? Worth opening a ticket if that’s
>     the case with detailed error/test case.
>
>     *From:* Anamitra Bhattacharyya via Jython-users
>     <[email protected]>
>     *Sent:* Wednesday, May 31, 2023 11:50 AM
>     *To:* [email protected]
>     *Subject:* [Jython-users] Java 17 and support for jython
>
>     Hi
>
>     just wondering if jython 273 supports java 17? From the jython.org
>     <http://jython.org> website - its java 8 and java 11 - does not
>     mention java 17. If not - is there a version of jython that is
>     coming up that will support java 17?
>
>     thanks
>
>     Anamitra Bhattacharyya
>
>     Maximo STSM
>
>     IBM Master Inventor
>
>     _______________________________________________
>     Jython-users mailing list
>     [email protected]
>     https://lists.sourceforge.net/lists/listinfo/jython-users
>
>
>
> _______________________________________________
> Jython-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jython-users

-- 

Jeff Allen

--------------CRfaeDdRY4rC6kZHZ0r0haNX
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Jython 2 is built with Java 8 and tested with Java 8 and Java 11.</p>
    <p>The backwards compatibility of Java versions is very high. The
      byte code is stable. What varies slightly is the Java API, where
      methods may have been removed, or others overloaded in ways that
      affect exactly which is found during a call.</p>
    <p>I ran the regression tests on an installed 2.7.3 with Java 17.
      The expected result is explained here:</p>
    <p><a class="moz-txt-link-freetext" href="https://jython-devguide.readthedocs.io/en/latest/release_jy.html#installation-regrtest">https://jython-devguide.readthedocs.io/en/latest/release_jy.html#installation-regrtest</a></p>
    <p>With Java 17 I got an additional failure from test_httplib that
      is to do with header data not expected by the test. That may well
      be satisfactory for your application. You'll do your own tests, of
      course, and can repeat ours fairly easily.<br>
    </p>
    <p>There may be a 2.7.4 this year, and it may be tested with Java
      17, but an eventual Jython 3 will get most of the time.<br>
    </p>
    <p>Jeff<br>
    </p>
    <div class="moz-cite-prefix">On 04/06/2023 13:24, Oti wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CACDaqRCOt7SaNo8zFjbY7=-Ev9nS0hg6OkqKbWKL8U_TZ4XrKg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small">It
          starts:</div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small"><br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;font-size:small">
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s1"
              style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>➜<span
                  class="gmail-Apple-converted-space">  </span></b></span><span
              class="gmail-s2"
              style="font-variant-ligatures:no-common-ligatures;color:rgb(46,174,187)"><b>~</b></span><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures"> java
              -version</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">openjdk
              version "17.0.7" 2023-04-18</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">OpenJDK
              Runtime Environment Temurin-17.0.7+7 (build 17.0.7+7)</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">OpenJDK
              64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed
              mode, sharing)</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s1"
              style="font-variant-ligatures:no-common-ligatures;color:rgb(47,180,29)"><b>➜<span
                  class="gmail-Apple-converted-space">  </span></b></span><span
              class="gmail-s2"
              style="font-variant-ligatures:no-common-ligatures;color:rgb(46,174,187)"><b>~</b></span><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures"> java
              -jar ~/Downloads/jython-standalone-2.7.3.jar<span
                class="gmail-Apple-converted-space"> </span></span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">Jython
              2.7.3 (tags/v2.7.3:5f29801fe, Sep 10 2022, 18:52:49)</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">[OpenJDK
              64-Bit Server VM (Eclipse Adoptium)] on java17.0.7</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">Type
              "help", "copyright", "credits" or "license" for more
              information.</span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures">&gt;&gt;&gt;<span
                class="gmail-Apple-converted-space"> </span></span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures"><span
                class="gmail-Apple-converted-space"><br>
              </span></span></p>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures"><span
                class="gmail-Apple-converted-space"><br>
              </span></span></p>
          <div class="gmail_default">Best wishes,</div>
          <div class="gmail_default">Oti.</div>
          <p class="gmail-p1"
style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:12px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span
              class="gmail-s3"
              style="font-variant-ligatures:no-common-ligatures"><span
                class="gmail-Apple-converted-space"><br
                  class="gmail-Apple-interchange-newline">
              </span></span></p>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Wed, May 31, 2023 at
          10:15 PM Anamitra Bhattacharyya via Jython-users &lt;<a
            href="mailto:[email protected]"
            moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <div class="msg-8095556567945380979">
            <div dir="ltr">
              <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">havent
                tested it yet - we were contemplating a move to java 17
                - and since the <a
                  href="https://www.jython.org/download"
                  id="m_-8095556567945380979LPlnkOWALinkPreview"
                  target="_blank" moz-do-not-send="true"
                  class="moz-txt-link-freetext">https://www.jython.org/download</a> for
                2.7.3 only lists java 8 and 11 - was not sure if there
                was another version that would be released for java 17.
                Not sure if anyone here have tried with java 17 - and
                any issues with jython 2.7.3 on that.</div>
              <div>
                <div
id="m_-8095556567945380979LPBorder_GTaHR0cHM6Ly93d3cuanl0aG9uLm9yZy9kb3dubG9hZA.."
style="width:100%;margin-top:16px;margin-bottom:16px;max-width:800px;min-width:424px">
                  <table id="m_-8095556567945380979LPContainer775608"
                    role="presentation" style="padding:12px 36px 12px
12px;width:100%;border-width:1px;border-style:solid;border-color:rgb(200,200,200);border-radius:2px">
                    <tbody>
                      <tr style="border-spacing:0px" valign="top">
                        <td style="width:100%">
                          <div id="m_-8095556567945380979LPTitle775608"
style="font-size:21px;font-weight:300;margin-right:8px;font-family:wf_segoe-ui_light,&quot;Segoe
                            UI Light&quot;,&quot;Segoe WP
                            Light&quot;,&quot;Segoe UI&quot;,&quot;Segoe
WP&quot;,Tahoma,Arial,sans-serif;margin-bottom:12px">
                            <a
                              id="m_-8095556567945380979LPUrlAnchor775608"
                              href="https://www.jython.org/download"
                              style="text-decoration:none"
                              target="_blank" moz-do-not-send="true">Downloads</a></div>
                          <div
                            id="m_-8095556567945380979LPDescription775608"
style="font-size:14px;max-height:100px;font-family:wf_segoe-ui_normal,&quot;Segoe
                            UI&quot;,&quot;Segoe
WP&quot;,Tahoma,Arial,sans-serif;margin-bottom:12px;margin-right:8px;overflow:hidden;color:rgb(102,102,102)">The
                            Python runtime on the JVM</div>
                          <div
                            id="m_-8095556567945380979LPMetadata775608"
style="font-size:14px;font-weight:400;font-family:wf_segoe-ui_normal,&quot;Segoe
                            UI&quot;,&quot;Segoe
                            WP&quot;,Tahoma,Arial,sans-serif;color:rgb(166,166,166)">
                            <a href="http://www.jython.org"
                              target="_blank" moz-do-not-send="true">www.jython.org</a></div>
                        </td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
              <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
              </div>
              <div>
                <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><br>
                </div>
                <div id="m_-8095556567945380979Signature">
                  <div>
                    <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">thanks</div>
                    <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Anamitra
                      Bhattacharyya</div>
                    <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">Maximo <span
style="background-color:rgb(255,255,255);display:inline">STSM<span> </span></span></div>
                    <div
style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">IBM
                      Master Inventor</div>
                  </div>
                </div>
              </div>
              <hr style="display:inline-block;width:98%">
              <div id="m_-8095556567945380979divRplyFwdMsg" dir="ltr"><font
                  style="font-size:11pt" face="Calibri, sans-serif"
                  color="#000000"><b>From:</b> Chris Clark &lt;<a
                    href="mailto:[email protected]" target="_blank"
                    moz-do-not-send="true" class="moz-txt-link-freetext">[email protected]</a>&gt;<br>
                  <b>Sent:</b> Wednesday, May 31, 2023 4:00 PM<br>
                  <b>To:</b> Anamitra Bhattacharyya &lt;<a
                    href="mailto:[email protected]"
                    target="_blank" moz-do-not-send="true"
                    class="moz-txt-link-freetext">[email protected]</a>&gt;;
                  <a href="mailto:[email protected]"
                    target="_blank" moz-do-not-send="true"
                    class="moz-txt-link-freetext">[email protected]</a>
                  &lt;<a
                    href="mailto:[email protected]"
                    target="_blank" moz-do-not-send="true"
                    class="moz-txt-link-freetext">[email protected]</a>&gt;<br>
                  <b>Subject:</b> [EXTERNAL] RE: Java 17 and support for
                  jython</font>
                <div> </div>
              </div>
              <div>
                <div
style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">Are
                  you saying it’s not working? Worth opening a ticket if
                  that’s the case with detailed error/test case. From:
                  Anamitra Bhattacharyya via Jython-users
                  <a class="moz-txt-link-rfc2396E" href="mailto:jython-users@ lists. sourceforge. net">&lt;jython-users@ lists. sourceforge. net&gt;</a> Sent:
                  Wednesday, May 31, 2023 11: 50
                </div>
                <div
style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerStart</div>
                <div dir="ltr"
                  id="m_-8095556567945380979x_pfptBannerfj0faos"
                  style="display:block;text-align:left;margin:16px
                  0px;padding:8px
16px;border-radius:4px;min-width:200px;background-color:rgb(208,216,220);border-top:4px
                  solid rgb(144,164,174)" lang="en">
                  <div id="m_-8095556567945380979x_pfptBannerfj0faos"
                    style="float:left;display:block;margin:0px 0px
                    1px;max-width:600px">
                    <div id="m_-8095556567945380979x_pfptBannerfj0faos"
style="display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-weight:bold;font-size:14px;line-height:18px">
                      This Message Is From an External Sender </div>
                    <div id="m_-8095556567945380979x_pfptBannerfj0faos"
style="font-weight:normal;display:block;background-color:rgb(208,216,220);color:rgb(0,0,0);font-family:Arial,sans-serif;font-size:12px;line-height:18px;margin-top:2px">
                      This message came from outside your organization.
                    </div>
                  </div>
                  <div
style="height:0px;clear:both;display:block;line-height:0;font-size:0.01px"> </div>
                </div>
                <div
style="font-size:1px;color:rgb(255,255,255);line-height:1px;height:0px;max-height:0px;opacity:0;overflow:hidden;display:none">ZjQcmQRYFpfptBannerEnd</div>
                <div>
                  <p>Are you saying it’s not working? Worth opening a
                    ticket if that’s the case with detailed error/test
                    case.</p>
                  <p> </p>
                  <div>
                    <div
style="border-right:none;border-bottom:none;border-left:none;border-top:1pt
                      solid rgb(225,225,225);padding:3pt 0in 0in">
                      <p><b>From:</b> Anamitra Bhattacharyya via
                        Jython-users &lt;<a
                          href="mailto:[email protected]"
                          target="_blank" moz-do-not-send="true"
                          class="moz-txt-link-freetext">[email protected]</a>&gt;
                        <br>
                        <b>Sent:</b> Wednesday, May 31, 2023 11:50 AM<br>
                        <b>To:</b> <a
                          href="mailto:[email protected]"
                          target="_blank" moz-do-not-send="true"
                          class="moz-txt-link-freetext">[email protected]</a><br>
                        <b>Subject:</b> [Jython-users] Java 17 and
                        support for jython</p>
                    </div>
                  </div>
                  <p> </p>
                  <div>
                    <p><span style="font-size:12pt;color:black">Hi </span></p>
                  </div>
                  <div>
                    <p><span style="font-size:12pt;color:black">just
                        wondering if jython 273 supports java 17? From
                        the <a href="http://jython.org" target="_blank"
                          moz-do-not-send="true">jython.org</a> website
                        - its java 8 and java 11 - does not mention java
                        17. If not - is there a version of jython that
                        is coming up that will support java 17?</span></p>
                  </div>
                  <div>
                    <div>
                      <p><span style="font-size:12pt;color:black"> </span></p>
                    </div>
                    <div id="m_-8095556567945380979x_Signature">
                      <div>
                        <div>
                          <p><span style="font-size:12pt;color:black">thanks</span></p>
                        </div>
                        <div>
                          <p><span style="font-size:12pt;color:black">Anamitra
                              Bhattacharyya</span></p>
                        </div>
                        <div>
                          <p><span style="font-size:12pt;color:black">Maximo <span
                                style="background:white">STSM </span></span></p>
                        </div>
                        <div>
                          <p><span style="font-size:12pt;color:black">IBM
                              Master Inventor</span></p>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            _______________________________________________<br>
            Jython-users mailing list<br>
            <a href="mailto:[email protected]"
              target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">[email protected]</a><br>
            <a
              href="https://lists.sourceforge.net/lists/listinfo/jython-users"
              rel="noreferrer" target="_blank" moz-do-not-send="true"
              class="moz-txt-link-freetext">https://lists.sourceforge.net/lists/listinfo/jython-users</a><br>
          </div>
        </blockquote>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Jython-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a>
<a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/jython-users">https://lists.sourceforge.net/lists/listinfo/jython-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 

Jeff Allen
</pre>
  </body>
</html>

--------------CRfaeDdRY4rC6kZHZ0r0haNX--


--===============6754508055412691046==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============6754508055412691046==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users

--===============6754508055412691046==--