-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GR-31840] [GR-31681] Allow native-image shared libs to be built on module-path and fix resource bundle lookup. #3446
Conversation
1c29a4c
to
ea04d3c
Compare
@gilles-duboscq please have a look at the changes in |
...evm/src/com.oracle.svm.hosted.jdk11/src/com/oracle/svm/hosted/ClassLoaderSupportFeature.java
Outdated
Show resolved
Hide resolved
substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ClassLoaderSupportFeature.java
Outdated
Show resolved
Hide resolved
909cc97
to
d130946
Compare
7302e45 ... how silly of me, forgetting that not everything is in a java module ... yet 🤡 |
...cle.svm.hosted.jdk11/src/com/oracle/svm/hosted/jdk11/ClassLoaderSupportImplJDK11OrLater.java
Show resolved
Hide resolved
…iveimage.driver:com.oracle.svm.driver.metainf
…ying class ClassLoaderSupportFeature
substratevm/src/com.oracle.objectfile.jdk11/src/com/oracle/objectfile/ModuleAccess.java
Show resolved
Hide resolved
oracle/graal@1e639c9 from oracle/graal#3446 introduces some more dependencies on Truffle that Mandrel doesn't really depend on
…ation oracle/graal@1e639c9 introduces some more dependencies on Truffle that Mandrel doesn't really depend on oracle/graal@d81403a change the location of the jvmti-agent-base.jar Both changes where part of oracle/graal#3446
…ation oracle/graal@1e639c9 introduces some more dependencies on Truffle that Mandrel doesn't really depend on oracle/graal@d81403a change the location of the jvmti-agent-base.jar Both changes were part of oracle/graal#3446
…ation oracle/graal@1e639c9 introduces some more dependencies on Truffle that Mandrel doesn't really depend on oracle/graal@d81403a change the location of the jvmti-agent-base.jar Both changes were part of oracle/graal#3446
…ation oracle/graal@1e639c9 introduces some more dependencies on Truffle that Mandrel doesn't really depend on oracle/graal@d81403a change the location of the jvmti-agent-base.jar Both changes were part of oracle/graal#3446
} | ||
String packageName = packageName(bundleName); | ||
if (packageName == null) { | ||
throw new MissingResourceException("ResourceBundle does not seem to be a fully qualified class name.", bundleName, locale.toLanguageTag()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @olpaw ,
With this check in place jar files including resource bundles in .properties file format at their root are not supported. Such an example is org.eclipse.yasson (seen failing in quarkusio/quarkus#18305).
Going through ResourceBundle's Javadoc I was not able to find any mention/guidance on avoiding adding ResourceBundles to the root of jar files, so I am wondering if this is something we should relax on GraalVM.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zakkak Yes we should probably add fallback code for that to support that. Please create an issue for me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ImageIncludeBuiltinModules
. It was previously needed for building truffle-based images. Cleaning up class-init for Java 11+ make the existence ofImageIncludeBuiltinModules
obsolete. (I.e. if there is truffle, it's classes are subject to class-init)--module-path
is used.--module-path
and test the shared objects inmx hellomodule