Re: Java 21 for jEdit ?

Dale Anson <[email protected]> Thu, 12 Oct 2023 20:20:04 -0600
Newsgroups gmane.editors.jedit.devel
Message-ID <CAHrA0wABdm1ZFXW5AqooxrJfbeggPqx32hbmi6cWw9sWwRcdfw@mail.gmail.com>
I ran the macro several ways:

java 11.0.20.1 openjdk, jEdit 5.7 25689, beanshell original, PASSED
java 11.0.20.1 jedit 5.7 25689, beanshell 2.1, PASSED
java 20.0.2 openjdk, jedit 5.7 25689, beanshell original PASSED
java 20.0.2 openjdk, jedit 5.7 25689, beanshell 2.1, PASSED

I'm not quite at the latest code for jEdit and have been dealing with
crappy internet for a couple of days and can't seem to update, but I can't
seem to get this test to fail.

StringBuilder sb = new StringBuilder();
sb.append("test");
System.out.println(sb);

I put the above into a buffer, selected the lines, then Utilities -
Beanshell - Evaluate Selection, and "test" appears in the activity.log
every time.

uname -a shows:
Linux dev-one 6.5.3-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 13 Sep 2023
08:37:40 +0000 x86_64 GNU/Linux

On Fri, Oct 6, 2023 at 2:16 PM Robert Schwenn <[email protected]>
wrote:

> Hi,
> forget my last answer. Now I have steps to reproduce - see
> https://sourceforge.net/p/jedit/bugs/4118/.
>
> @Dale:
> Could You please try these steps with "Your" Beanshell?
>
> Robert
>
>
> Am 04.10.2023 um 22:10 schrieb Matthieu Casanova:
>
> Hey,
> are you able to reproduce it today ?
> I tried with a macro
>
> sb.bsh containing
>
> StringBuilder sb = new StringBuilder();
> sb.append("test");
> System.out.println(sb.toString());
>
> I run it with Java 17.0.8.1 (Adoptium) and it works.
> I tried to recompile jEdit with that same JDK and ran jEdit and the test
> and it also worked.
> Did I miss something or maybe someone fixed the bug already?
>
> As Dale told it seems we will not be able to upgrade Beanshell because of
> their licence change so we have the choice to find another alternative that
> would be compatible with GPL (I don't know any), otherwise we might try to
> solve the problem ourselves in our version of Beanshell.
>
> --
>   Matthieu Casanova
>   [email protected]
>
>
> Mer 04 oct 2023, à 22:03, Dale Anson a écrit :
>
> I believe it's in the same place it was last year. It isn't hard to
> upgrade the integrated beanshell to a newer, java 17+ compatible version,
> but there is still the GPL vs Apache license issue which hasn't been worked
> out.
>
> On Wed, Oct 4, 2023 at 1:40 PM Robert Schwenn <[email protected]>
> wrote:
>
>
> Hi,
>
> do You have in mind that there's a issue with integrated beanshell (
> https://sourceforge.net/p/jedit/bugs/4118/) not being compatible with
> java 17 (and presumably later)? Or is it fixed already (or a mistake)?
>
> Robert
>
>
>
> Am 02.10.2023 um 23:27 schrieb Matthieu Casanova:
>
> Hey,
> we missed java 17 and are still on java 11. Java 21 arrived and it is LTS,
> I think it would be nice that the next version of jEdit (after 5.7 release)
> would be java 21 which brings a lot of nice features especially virtual
> threads.
> Anyone against it ?
>
> Matthieu
>
>
> --
> -----------------------------------------------
> jEdit Developers' List
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>
>
> --
> -----------------------------------------------
> jEdit Developers' List
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jedit-devel
>
>
>
> --
> Mit freundlichen Grüßen
> Robert Schwenn
> Augustusweg 10a
> 01445 Radebeul
> 0152 / 26 24 25 97
>
>

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel