The returned ModuleDescriptor content should be computed based on the set of packages contained by the Pool.Module. It is currently returning the original ModuleDescriptor.
Comments
This is related to JDK-8147491. This issue seems to assume that jlink should update module-info.class (and ModuleDescriptor) after each plugin invocation since each plugin may add/remove a package.
Perhaps this should be closed as dup as JDK-8147491.
31-03-2016
Does it mean that packages may be removed from Pool and ModuleDescriptor should reflect that?? Can anyone explain the history behind this bug?
31-03-2016
In the current source, Pool.ModuleImpl uses ModuleDescriptor.read(ByteBuffer) to read descriptor from module-info.class bytes. I don't get what is meant by "It is currently returning the original ModuleDescriptor".