Open kreuter opened 3 weeks ago
I do that too but there still remain fields that are inaccessible. I haven't investigated why or whether there is a workaround. I have a feeling that more --add-opens for different modules need to be added to the command line.
I have half-heartedly been collecting various --add-opens
clauses in the ABCL Ant autoconfigure logic (c.f. https://github.com/armedbear/abcl/blob/master/ci/create-abcl-properties.bash#L16).
Aspirationally, I would put all this logic into Common Lisp that would create the necessary wrapper scripts for UNIX/Windows, but that effort has never materialized.
It appears that recentish Java versions enforce stricter access controls for reflection methods than formerly. (Transcript below.)
I don't know if this is the right way to fix it, but it seems that adding
--add-opens java.base/java.lang=ALL-UNNAMED
to the java startup flags in the abcl script makes this problem go away, at least for the simple cases I've tried.