JDK-8147472 : Jlink, ModuleDescriptor returned by Pool.Module doesn't reflect actual content of a module
  • Type: Sub-task
  • Component: tools
  • Sub-Component: jlink
  • Affected Version: 9-repo-jigsaw
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-01-15
  • Updated: 2016-04-01
  • Resolved: 2016-04-01
Related Reports
Duplicate :  
Relates :  
Description
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".
31-03-2016