RFR: 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class

Uwe Schindler uschindler at openjdk.org
Thu Mar 9 22:09:24 UTC 2023


On Fri, 25 Nov 2022 14:38:55 GMT, Adam Sotona <asotona at openjdk.org> wrote:

> 8294962: java.base jdk.internal.module package uses ASM to modify and write module-info.class.
> This patch converts it to use Classfile API.
> 
> Please review.
> Thanks,
> Adam

src/java.base/share/classes/jdk/internal/module/ModuleInfoWriter.java line 140:

> 138:                                         p.providers()
> 139:                                             .stream()
> 140:                                             .map(pn -> ClassDesc.of(pn))

Change to: `.map(ClassDesc::of)`

-------------

PR: https://git.openjdk.org/jdk/pull/11368


More information about the core-libs-dev mailing list