Affects Version/s: None
Fix Version/s: 3.3.0
When packaging a war with most recent jigsaw-jdk9-ea releases you will get the following exception:
Root cause is the change is the jigsaw-jdk-9-ea+135
The changes to setAccessible in #AwkwardStrongEncapsulation is going to
be disruptive and will no doubt expose hacks in many areas. We've run
into several of these already. The command line option to allow existing
code to break into non-public types/members is --add-exports-private.
The format of the value passed to this option is the same--add-exports.
With #AddExportsInManifest then there are equivalents in the application
JAR main manifest to try out too.
The stacktrace exposes that the issue is caused by XStream. It seems that XStream is used to be able to merge overlays. Maven and most other plugins use Modello for these kind of things.
There's still a lot of discussion about #ReflectiveAccessToNonExportedTypes and #AwkwardStrongEncapsulation and but I think we can avoid this issue by simply switching to the well known Modello solution.