Skip to content

Commit

Permalink
[GR-19687] Fix the error message in DisallowedImageHeapObjectFeature …
Browse files Browse the repository at this point in the history
…to refer to initialize-at-run-time instead of initialize-at-build-time.

PullRequest: graal/4935
  • Loading branch information
vjovanov committed Nov 22, 2019
2 parents f0c5dea + d7e4335 commit e822da8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private static RuntimeException error(String msg) {
throw new UnsupportedFeatureException(msg + " " +
"The object was probably created by a class initializer and is reachable from a static field. " +
"You can request class initialization at image run time by using the option " +
SubstrateOptionsParser.commandArgument(ClassInitializationFeature.Options.ClassInitialization, "<class-name>", "initialize-at-build-time") + ". " +
SubstrateOptionsParser.commandArgument(ClassInitializationFeature.Options.ClassInitialization, "<class-name>", "initialize-at-run-time") + ". " +
"Or you can write your own initialization methods and call them explicitly from your main entry point.");
}

Expand Down

0 comments on commit e822da8

Please sign in to comment.