Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[lyo-dev] Fwd: Java 8 or 11?

Hello,

Please see the response to my email from Andy who is the Jena maintainer below. Bottom line:

- should be fine to update to Jena 3.17 in Lyo 4.x
- he has a good point that people who resist change out of habit or environment constraints are equally likely to stay on Lyo 2.x for the very same reasons (2.1.2 or 2.2 for those on Jena 2)
- security vulnerabilities should be out of scope if you don’t use JSON-LD but don’t take it as an all-clear

Anyway, again I am fairly certain Lyo 5.x will no longer support JDK 8. Lyo Designer may drop JDK 8 even sooner because of Eclipse but this will not affect your production environment requirements. Lyo 4.0 ships with a standalone Lyo Designer product.

Right now we only deploy from master but we can change the CI also to deploy changes on ‘maint-*’ branches, eg:

maint-2.1 (maintaining 2.1.2 version that we released just after reviving the project)
maint-2.2 (2.2.0 version is the 2.1.2 version plus all the non-breaking changes from 3.0.0 snapshot, the last version to support Jena 2, I think it was also the last version to support Java 7)
maint-2.x (2.4.0 is the latest version for now, last version to support Wink and JAX-RS 1.1)
maint-4.x (but only when we decide to start working on 5.0.0-snapshot)

To be very clear, I am not planning to do it unless there is enough demand/commitment from the Lyo community for this. Creating maint-4.x will be relatively easy but older versions will require manual reconstruction of the monorepo.

–Andrew

Begin forwarded message:

From: Andy Seaborne <andy@xxxxxxxxxx>
Date: 11 January 2021 at 19:13:37 CET
To: users@xxxxxxxxxxxxxxx
Subject: Re: Java 8 or 11?
Reply-To: users@xxxxxxxxxxxxxxx

Hi Andrii,



On 11/01/2021 12:59, Andrii Berezovskyi wrote:
Hello,
Just noticed that the discussion went really fast.

The discussion started on the dev@jena list.

It isn't a done deal - no release yet.

I am a maintainer for Eclipse Lyo and as an integration SDK, we ship JDK 8 library builds for wide compat (with Jena dependency). Our GH Actions build matrix succeeds on JDK 8, 11, 15, 16-ea, and 17-ea but this change will be breaking for us. To be clear, we build our libraries under JDK 8 and use them under JDK 11+ where possible, so we do take advantage of better Docker compat and TLS improvements.

This is the Jena projects CI: https://ci-builds.apache.org/job/Jena/

(8), 11, 14, 15, 16

When targeting Java8 output, they have been fine.

It has taken a bit of work to get the code to properly build under Java11 (javadoc issues - see dev@jena).

1) Could you please consider bumping the Jena version to 4.0 as this is a breaking change?

Noted.

2) Is it possible to designate some 3.x version to receive security fixes (I think Jackson is the biggest offender we see in our GH/Snyk reports) for some time after 4.0 release?

Jackson has been turbulent but I believe that the newer versions, with an architectural change 2.9 -> 2.10 do not have the security risks. Jackson is only used by jsonld-java - and it does not seem to use the vulnerable part anyway. We/Jena took control of the version dependency so Jena could pick up CVE-fixes rather than need to sync with jsonld-java.

Other JSON parsing in Jena is done differently, by a plain JSON parser, no ORM-like functionality.

> I have seen reports that RDF* brings some problems to old users,

RDF* is an extension, not a change so query and data that isn't using RDF* isn't changed.

RDF* is already in a Jena (from 3.16.0). It does not interfere if it is not used (no reports have come in). The definition of RDF-star is emerging so Jena code for it will change.

If there are concerns, please link to the reports. There has been some scuttlebutt, indeed FUD, about RDF*.

so perhaps a version before that? Lyo 4.0 is on Jena 3.15 and Lyo 4.1.alpha is on 3.17 - for now without issues. I think JDK 8 support (non-Oracle) will generally stop around 2026 (https://aws.amazon.com/corretto/faqs/ and https://adoptopenjdk.net/support.html) and many integration projects are not eager to move (I just forwarded this thread to our mailing list and asked our users to begin testing their integration projects with JDK 11 but we will see).

I'd be interested in understanding the situation here - for example, do such integration projects upgrade at all?

Any view on whether there is an appetite for JPMS modules?

AdoptOpenJDK: Java8 is supported to at least May 2026 but Java11 to at least only Oct 2024. AdoptOpenJDK state that as long as upstream is doing releases they'll continue so I think we'll see a very long tail.

Java is supposed to be on a rolling 3 year LTS.

Java8 has been unusual.

3) How much trouble would it be to keep a JDK8 build of Jena without a new JSON-LD library? Are you switching libs or did Titanium drop JDK 8?

It's possible to have two code lines but we have to also be realistic as to the resources we have available. Two active branches means more project work. (Insert "tragedy of the commons" comment here.)

TItanium is one example - Eclipse Jetty 10 is now java11.

So this is really a choice point - keep to long lived legacy compatibility, which might be very long, or keep to some of up-to-date rolling policy.

   Andy

Thank you.
--
Best regards,
Andrew Berezovskyi
On 2021-01-08 , at 23:45, Andy Seaborne <andy@xxxxxxxxxx<mailto:andy@xxxxxxxxxx>> wrote:
The Jena build has been switched to produce Java11 bytecode.
Nothing else in the codebase has been changed so this is easily reversible at the moment.
Using SNAPSHOT artifacts will get you Java11 bytecode.
There is currently some problems producing javadoc
One problem is [1] on early Java11 releases (11.0.1, 11.0.2, but not the GA release 11.0.0). Update-to-date Java11 is now 11.0.9 and works
Another is overlapping packages across modules using automatic module naming.
These do not affect the running of Jena.
   Andy
[1] https://bugs.openjdk.java.net/browse/JDK-8212233

Back to the top