Few questions
Michał Zegan
webczat_200 at poczta.onet.pl
Fri Nov 25 19:33:53 UTC 2016
Hello.
I have a few questions about project jigsaw and things that are related.
- Does, or will, the jlink tool allow creating executables? I mean,
packing app with the runtime not in a directory, but in an executable
file of some sort? Or, will it be extendable in such a direction? Some
people would like something similar, although such an exe would be
really big.
- Is it possible to, in any way, circumvent module access control?
Reflection works to see, currently, all classes and interfaces, all
methods/fields/constructors of theirs whether private, protected or
whatever, and may be used to circumvent all such access restrictions.
What about deliberate circumventing of access from one module to
another, when an accessed class would be from a package that is not
exported?
How does it all work with serialization?
- And, what about module unloading?
From what I know, classes are never unloaded, unless they have no active
references to any of their objects and class object/etc, and unless
their class loader is collectable, that requires all other classes not
to be referenced/etc. How does this extend to modules? When modules are
unloaded?
- How to dynamically load modules? Does it require a new layer to be
created? Can you base a layer you create directly on the empty layer?
for example to run an app in a different environment, isolated from most
of the modules of another app...
- Probably the last question: are security providers per module/layer,
or per java virtual machine? Sometimes it at least seems useful for
two... javaee apps to have two versions of bouncycastle jcajce provider
running without conflict.
More information about the jigsaw-dev
mailing list