Static analyzer tool for split packages available?

Patrick Reinhart patrick at
Thu Sep 29 09:44:23 UTC 2016

Hi Mandy,

On 2016-09-29 01:11, Mandy Chung wrote:
>> On Sep 28, 2016, at 10:55 AM, Patrick Reinhart <patrick at> 
>> wrote:
>> Hello there,
>> First of all, thanks for all the hard work, you already put into the 
>> modularization of the JDK so far. Great job!
>> I started to look into the possible pitfalls in our code in order to 
>> be converted into JDK 9 modules in the future. Besides that I’ve 
>> already scanned our own libraries for usages of „unsafe“ code within 
>> the JDK, I’m aware of the fact, that my own packages should not 
>> contain the same packages twice (as referred as „split package“ 
>> problem). I wanted to know if there is already a kind of tool in the 
>> JDK that could scan for those packages, in order to sort those out.
> JDK does not have such a tool.  I do have a simple tool to list 
> packages
> and detect split packages for analysis.  I can post it somewhere if you
> want to use.

It would be great to get access to that.

>> If that would not already be the case I wonder if this would be an 
>> enhancement that would be worth while opening a JEP for it. (Where I 
>> would be prepared to help create)
> I think JBS issue would suffice.

I just openend JDK-8166896 for that.

> Last year Jon and I touched on the idea of having a class path analysis
> tool [1][2].  It can find split packages (overlapping classes vs
> partitioned classes).
> Mandy
> [1] 
> [2] 


More information about the jigsaw-dev mailing list