Is it possible to add classes to JPMS module dynamically?

Alex Orlov ooo_saturn7 at mail.ru
Thu Jun 4 12:34:08 UTC 2020


Hi all,
 
Let's suppose we have a JPMS module  moduleA with the following  module-info :
module moduleA {
    exports modulea.generated;
}
Now, using javassist/byte-buddy we generate new  modulea.generated.Foo class. Could anyone say if we can add this class to  moduleA dynamically (at runtime) so as JPMS work with it as it works with module existing classes?
 
 
--
Alex Orlov


More information about the jigsaw-dev mailing list