Skip to content

Commit

Permalink
Add comment explaining NativeImageClassLoaderSupportJDK11OrLater#adju…
Browse files Browse the repository at this point in the history
…stLibrarySupportReadAllUnnamed is only temporary
  • Loading branch information
olpaw committed Sep 1, 2021
1 parent 3eec3c9 commit 5d53854
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ private void adjustLibrarySupportReadAllUnnamed() {
* automatic module is not possible because we have to support non-modularized tests as
* well. Thus, we have to explicitly allow org.graalvm.nativeimage.librarysupport to read
* ALL-UNNAMED so that junit from classpath is accessible to it.
*
* This workaround can be replaced with --add-reads use once GR-33504 is implemented.
*/
Optional<Module> librarySupportModule = findModule("org.graalvm.nativeimage.librarysupport");
if (!librarySupportModule.isEmpty()) {
Expand Down

0 comments on commit 5d53854

Please sign in to comment.