Re: Module descriptor writing example?

Mark Raynsford <[email protected]> Tue, 20 Mar 2018 16:37:06 +0000
Newsgroups gmane.comp.java.objectweb.asm
Organization io7m.com
Message-ID <[email protected]>
On 2018-03-20T16:30:25 +0100
Remi Forax <[email protected]> wrote:

> Hi Mark,
> something like this should work
> 
>     ClassWriter classWriter = new ClassWriter(0);
>     classWriter.visit(Opcodes.V9, Opcodes.ACC_MODULE, "module-info", null, null, null);
>     moduleNode.accept(classWriter);
>     classWriter.visitEnd();

Thanks very much! It works.

-- 
Mark Raynsford | http://www.io7m.com
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQS4Thd0dhbGF0xo1eVcGntxKBLMBQUCWrE4sgAKCRBcGntxKBLM
BXt3AP9dvmVp6Z9KGonUDLtEGDHpBwd3yrospbcJDAG8+ngOKwEAzgAtjgP4Zaww
ka0kkeLmwEYIFEml/UuSVKW4c5PT+QU=
=rj05
-----END PGP SIGNATURE-----