3 ms·
I think reflection works with GraalVM native compile - the only catch is that the set of classes to be inspected by it should be known beforehand.
by kaba0 6y ago
I think reflection works with GraalVM native compile - the only catch is that the set of classes to be inspected by it should be known beforehand.
- pulse7 6y agoThis means you can't load JARs at runtime with ClassLoader in GraalVM natively compiled image...
- kaba0 6y agoYes. But for longer running apps you are probably better off with a JVM since it will have better peak performance.
- vips7L 6y agoYes but it's extremely difficult to know them before hand. Trust me I've tried. It's not a trivial thing to do. The only success I've had is with quarkus [0] and thats only if you don't go outside of what the framework provides. [0] https://quarkus.io/ https://quarkus.io/