No, just less safe and more dangerous then Java, which is the point OP wanted to make.
--enable-native-access works transitively, and at runtime, which means the person executing the code sees if anything shady might be going on and where, and needs to explicitly acknowledge it.
This is way more useful than a compiler option like AllowUnsafeBlocks that is only relevant at build time.
View all comments
Show parent comment
1
u/simon_o 3d ago
No, just less safe and more dangerous then Java, which is the point OP wanted to make.
--enable-native-accessworks transitively, and at runtime, which means the person executing the code sees if anything shady might be going on and where, and needs to explicitly acknowledge it.This is way more useful than a compiler option like
AllowUnsafeBlocksthat is only relevant at build time.