Skip to content

Custom distro got InaccessibleObjectException #12318

Answered by laurit
fangjian0423 asked this question in Q&A
Discussion options

You must be logged in to vote

See

private static Method getFindLoadedClassMethod() {
// instrumentation is null when this code is called from muzzle
Instrumentation instrumentation = InstrumentationHolder.getInstrumentation();
if (instrumentation == null) {
return null;
}
if (JavaModule.isSupported()) {
// ensure that we have access to ClassLoader.findLoadedClass
// if modular runtime is used export java.lang package from java.base module to the
// module of this class
JavaModule currentModule = JavaModule.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fangjian0423
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants