Proposal to enhance jdeps tool to search split packages/add some kind of general API
mandy.chung at oracle.com
Fri Nov 13 02:49:43 UTC 2015
> On Nov 12, 2015, at 2:39 AM, Patrick Reinhart <patrick at reini.net> wrote:
> Hi there,
> I like to do some early adoption tests with software using the new module system. Now we got an unknown amount of split packages in our system, the we will need to fix in order to migrate our codebase.
> I could imagine, that there are other potential users of the JDK, that have the same problem to solve. So I think it would be a good thing to have some detection within the jdeps tool or even have some kind of an API that could be used otherwise (as of in a IDE).
> Now I wanted to know what you think about this? I would also be prepared to do some work in that area.
A tool to detect split packages and some other characteristics to aid migration to modules would be useful. I tend to think that belongs to a different tool that can build other additional analysis in it.
For split packages, it’d be useful to differentiate if the split package contains overlapping classes vs partitioned classes. For partitioned classes, renaming the package would likely be one solution if it doesn’t need to live in a specific namespace. For overlapping classes, one possibility is that the class path contains multiple copies of the same version or different version or patched version of a library, or redistribution.
More information about the jigsaw-dev