Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Apr 7, 2022
1 parent 335eb51 commit a2fecda
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ private static Method getFindLoadedClassMethod() {
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.ofType(AgentCachingPoolStrategy.class);
JavaModule javaBase = JavaModule.ofType(ClassLoader.class);
if (javaBase != null && javaBase.isNamed() && currentModule != null) {
Expand Down

0 comments on commit a2fecda

Please sign in to comment.