Skip to content

Commit 5d53854

Browse files
committed
Add comment explaining NativeImageClassLoaderSupportJDK11OrLater#adjustLibrarySupportReadAllUnnamed is only temporary
1 parent 3eec3c9 commit 5d53854

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

substratevm/src/com.oracle.svm.hosted.jdk11/src/com/oracle/svm/hosted/jdk11/NativeImageClassLoaderSupportJDK11OrLater.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ private void adjustLibrarySupportReadAllUnnamed() {
134134
* automatic module is not possible because we have to support non-modularized tests as
135135
* well. Thus, we have to explicitly allow org.graalvm.nativeimage.librarysupport to read
136136
* ALL-UNNAMED so that junit from classpath is accessible to it.
137+
*
138+
* This workaround can be replaced with --add-reads use once GR-33504 is implemented.
137139
*/
138140
Optional<Module> librarySupportModule = findModule("org.graalvm.nativeimage.librarysupport");
139141
if (!librarySupportModule.isEmpty()) {

0 commit comments

Comments
 (0)