deptective icon indicating copy to clipboard operation
deptective copied to clipboard

Add check to prevent exposing internal types in public API

Open gunnarmorling opened this issue 6 years ago • 2 comments

When declaring the public API of a Java module in module-info.java, the Java compiler doesn't prevent exposure of any non-public types in the API signatures. That situation should be detected by Deptective and reported accordingly.

gunnarmorling avatar Jan 09 '19 18:01 gunnarmorling

@nilshartmann, @wuetherich, just realizing this interesting use case for Deptective.

gunnarmorling avatar Jan 09 '19 18:01 gunnarmorling

For applications without a module-info.java, the information of what constitutes the public API of the current compilation should be taken from deptective.json.

gunnarmorling avatar Jan 12 '19 14:01 gunnarmorling