Files
openide/java/java-impl/resources/inspectionDescriptions/SuspiciousPackagePrivateAccess.html
Leonid Shalupov 40795fe787 IJI-2422: community/java: move resources under resources root
GitOrigin-RevId: 8b2b63fc6db476ca0c2cfe5cadd84db6c4236d0f
2025-02-05 04:43:28 +00:00

11 lines
735 B
HTML

<html>
<body>
Reports usages of package-private members declared in the same package but in a different module.
<p>If the declaring classes are loaded by different loaders, the code that accesses a package-private member will fail with
<code>IllegalAccessError</code> at runtime.</p>
<p>If a method overrides a package-private method from a class that is loaded by a different loader, it won't be invoked when the super
method is called on an instance of the implementing class.</p>
<p>If a method implements an abstract package-private method from a class that is loaded by a different loader,
calling the super method on an instance of the implementing class will fail with <code>AbstractMethodError</code>.</p>
</body>
</html>