Skip to content

Commit

Permalink
Fix org.graalvm.nativeimage.builder exports
Browse files Browse the repository at this point in the history
Modular multi-release JARs can't export version-specific packages.
  • Loading branch information
pejovica committed Nov 10, 2021
1 parent 6cae92d commit e02fcc1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package com.oracle.svm.hosted.jdk11;
package com.oracle.svm.hosted.jdk;

import java.util.ArrayDeque;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package com.oracle.svm.hosted.jdk11;
package com.oracle.svm.hosted.jdk;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package com.oracle.svm.hosted.jdk11.localization;
package com.oracle.svm.hosted.jdk.localization;

import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -34,7 +34,6 @@
import org.graalvm.compiler.serviceprovider.JavaVersionUtil;

import com.oracle.svm.core.annotate.AutomaticFeature;
import com.oracle.svm.hosted.jdk.localization.LocalizationFeature;

//Checkstyle: stop
import sun.text.spi.JavaTimeDateTimePatternProvider;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ private static AbstractNativeImageClassLoaderSupport createNativeImageClassLoade
if (JavaVersionUtil.JAVA_SPEC >= 11) {
/* Instantiate module-aware NativeImageClassLoaderSupport */
try {
Class<?> nativeImageClassLoaderSupport = Class.forName("com.oracle.svm.hosted.jdk11.NativeImageClassLoaderSupportJDK11OrLater");
Class<?> nativeImageClassLoaderSupport = Class.forName("com.oracle.svm.hosted.jdk.NativeImageClassLoaderSupportJDK11OrLater");
Constructor<?> nativeImageClassLoaderSupportConstructor = nativeImageClassLoaderSupport.getConstructor(ClassLoader.class, String[].class, String[].class);
return (AbstractNativeImageClassLoaderSupport) nativeImageClassLoaderSupportConstructor.newInstance(defaultSystemClassLoader, classpath, modulePath);
} catch (ReflectiveOperationException e) {
Expand Down

0 comments on commit e02fcc1

Please sign in to comment.