question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--initialize-at-build-time added with empty value

See original GitHub issue

Is there a specific reason --initialize-at-build-time gets added every time with empty value to the native-image argument list? It comes from here

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dmlloydcommented, Nov 14, 2019

No, the command line that is printed is the one that is actually run in order to correctly produce the native image. Removing the option would result in an incorrect/non-functional build. The option is really present in the build. What Emmanuel was alluding to is that the command line options do not completely describe what is happening in the build. But they are still needed (in this case, the argument sets the default to “build time”, and we use features to establish which classes are run time, overriding the default).

0reactions
gsmetcommented, Nov 18, 2019

Closing. This is how it should be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

RuntimeClassInitialization (GraalVM SDK Java API Reference)
Registers the provided classes as eagerly initialized during image-build time. static void, initializeAtBuildTime(String... packages). Registers all classes in ...
Read more >
java - How to fix "Try avoiding to initialize the class that caused ...
Basically I try to include specific classes that trigger the initialization in --initialize-at-build-time . Here's what I do. Add parameter ...
Read more >
Tips for writing native applications - Quarkus
Delay class initialization​​ Using such a construct means that a --initialize-at-run-time option will automatically be added to the native-image command line. ...
Read more >
Updates on Class Initialization in GraalVM Native Image ...
tl;dr: Since GraalVM 19.0, application classes in native images are by default initialized at run time and no longer at image build time....
Read more >
Native Image Build Options - GraalVM - Oracle Help Center
add root modules to resolve in addition to the initial module. <module name> can also be ALL-DEFAULT , ALL-SYSTEM , ALL-MODULE-PATH; -D<name>=<value> :...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found