Java 17 Jooq compatibility

27 views
Skip to first unread message

deepali sharma

unread,
Dec 6, 2023, 10:26:52 AM12/6/23
to jOOQ User Group
hi,

What is the minimum version of JOOQ which supports Java 17.
We were using 3.8 version of JOOQ earlier and now need to migrate to Java 17.

Also on migration we are getting number of issues like the GeneratorStrategy.
Earlier we were implementing custom strategy which use to implement GeneratorStrategy.

In older version we were able to override following:
@Override
    public final String getFileName(Definition definition) {
        return getFileName(definition, Mode.DEFAULT);
    }

Now in new its giving error that Final cannot be overridden.

Any help will be appreciated where we are implementing custom strategy.

Thanks.

Lukas Eder

unread,
Dec 6, 2023, 10:30:54 AM12/6/23
to jooq...@googlegroups.com
Hi Deepali,

Thanks for your message. Why not upgrade jOOQ as well with the JDK?

As you can see here, the first version to officially support Java 17 was jOOQ 3.16:

It's not unlikely you'll get an earlier version of jOOQ to work on Java 17 as well, it's just that this has never been integration tested.

Regarding the GeneratorStrategy, you'll find that the final methods hint at the actual method you should override. In this case, the getJavaClassName() method.

I hope this helps,
Lukas

--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/b22196b6-f335-4447-9c2e-4f9c698d896en%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages