JPersist 1.9.0 Adds Hybrid JPMS Execution for Build-Time JPA Tooling
The fifth part of the Gradle Under the Hood series introduces JPersist v1.9.0, which lets build-time JPA tooling run against modular Java applications without weakening module encapsulation. The article explains that deep reflection used by Hibernate can trigger InaccessibleObjectException errors on modular projects unless developers add opens declarations to production module descriptors. To address this, the team built JPMSWorkerSupport, a router that checks for a compiled module-info.class at task time and picks either fast in-process classloader isolation or forked process isolation. For modular projects, the tool reads the module descriptor with the standard ModuleDescriptor API and automatically injects the needed --add-opens flags for the forked worker JVM.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in