Skip to content

Commit

Permalink
Deprecate --initialize-at-build-time
Browse files Browse the repository at this point in the history
  • Loading branch information
vjovanov committed Jun 11, 2021
1 parent 5b36483 commit 5013ca7
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ Consumer<String> stringConsumer(ClassInitializationSupport support, String origi
} else if (this == RERUN) {
return name -> support.rerunInitialization(name, reason);
} else {
return name -> support.initializeAtBuildTime(name, reason);
return name -> {
if (name.equals("")) {
System.err.println("--initialize-at-build-time without arguments has been deprecated and will be removed in GraalVM 22.0.");
}
support.initializeAtBuildTime(name, reason);
};
}
}

Expand Down

0 comments on commit 5013ca7

Please sign in to comment.