A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/nipafx/demo-jpms-monitor/tree/break-cyclic-dependency-run-time below:

GitHub - nipafx/demo-jpms-monitor at break-cyclic-dependency-run-time

↗️ This README only covers one section of the demo. The master branch contains more information.

Cyclic Dependencies at Run Time

Getting a dependency cycle past the compiler requires a little bit of effort:

Because each half of the cycle was built against a version of the depended module that did not have the dependency back, the compiler never saw the cycle. Only when both versions come together is there actually a cycle.

(Only in compile.sh, not with Maven.)

The runtime catches it:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException:
Cycle detected: monitor.persistence -> monitor.rest -> monitor.persistence

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4