Inspectopedia
 
2024.3

Illegal dependency on internal package

Error
New
Last modified: 03 December 2024

Reports references in modules without module-info.java on packages which are not exported from named modules.

Such configuration may occur when some modules in the project are already migrated to Java modules but others are still non-modular. By analogy to the JDK, such non-modular code should not get access to the code in named modules which is not explicitly exported.