LINQ Reporting Engine throws IllegalStateException in JDK 17 support

We are using aspose.word library to replace some placeholders with values. It is working just fine using JDK11, but after updating to JDK17 rendering is not working anymore.

I have attached a maven project that can be used to check this out (the license file is removed). test.zip (20.2 KB)

Currently in the result.docx you can check the error message (errors are inlined)

@artyomsv2 Thank you for reporting the problem to us. For a sake of correction it has been logged as WORDSJAVA-2742. We will keep you informed and let you know once it is resolved.
As a workaround of the problem, you can disable reflection optimization. Just add the following line to your code:

ReportingEngine.setUseReflectionOptimization(false);
1 Like

@alexey.noskov
Thanks for the quick reply. Yes, this config fixed the issue.

1 Like

The issues you have found earlier (filed as WORDSJAVA-2742) have been fixed in this Aspose.Words for Java 23.5 update.