KotlinGenerator not generating override modifier for properties declared in interface of records and pojos

63 views
Skip to first unread message

Thomas Tardy

unread,
Oct 21, 2020, 7:50:35 AM10/21/20
to jOOQ User Group
Hi all

I'm trying to use the new org.jooq.codegen.KotlinGenerator to generate kotlin code. I have the generator configured in order to have records and pojo implement some interfaces. But the generated code does not generate the override modifier for the properties declared in the implemented interfaces.

Am I doing something wrong or is it possible, that this is not a supported feature yet?

Thanks for your help!
Thomas

Lukas Eder

unread,
Oct 21, 2020, 7:51:40 AM10/21/20
to jOOQ User Group
Hi Thomas,

Quite possibly, this is a bug. Can you please share your code generation configuration to see what exact combination of flags produces this behaviour?

Thanks,
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/78d27ea6-7919-4c54-9ac5-c5bad65c79e1n%40googlegroups.com.

Thomas Tardy

unread,
Oct 21, 2020, 8:43:00 AM10/21/20
to jOOQ User Group
Hi Lukas

Thanks for your quick response. I've created a sample project showcasing the problem. Besides the missing override modifiers I've found an issue when using arrays.

You can access the sample project on https://github.com/thomastardy/jooq-kotlin-code-generation. There is a file fixes.patch including the changes I applied manually to fix the issues.

Thanks again for your support and please let me know if I should change my configuration to resolve these issues or if a new release of jooq is required.

Best Regards,
Thomas

Lukas Eder

unread,
Oct 21, 2020, 8:46:41 AM10/21/20
to jOOQ User Group
On Wed, Oct 21, 2020 at 2:43 PM Thomas Tardy <thomas...@gmail.com> wrote:
Hi Lukas

Thanks for your quick response. I've created a sample project showcasing the problem. Besides the missing override modifiers I've found an issue when using arrays.

 
You can access the sample project on https://github.com/thomastardy/jooq-kotlin-code-generation. There is a file fixes.patch including the changes I applied manually to fix the issues.

Thanks. I'll investigate this and update the issue I've created here:

Best regards,
Lukas

Thomas Tardy

unread,
Oct 21, 2020, 8:53:27 AM10/21/20
to jOOQ User Group
Hi Lukas

Yes, the issue with the arrays is already reported in https://github.com/jOOQ/jOOQ/issues/10768.

Best regards,
Thomas
Reply all
Reply to author
Forward
0 new messages