Skip to content

Commit 5013ca7

Browse files
committed
Deprecate --initialize-at-build-time
1 parent 5b36483 commit 5013ca7

File tree

1 file changed

+6
-1
lines changed
  • substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/classinitialization

1 file changed

+6
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/classinitialization/InitKind.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,12 @@ Consumer<String> stringConsumer(ClassInitializationSupport support, String origi
6868
} else if (this == RERUN) {
6969
return name -> support.rerunInitialization(name, reason);
7070
} else {
71-
return name -> support.initializeAtBuildTime(name, reason);
71+
return name -> {
72+
if (name.equals("")) {
73+
System.err.println("--initialize-at-build-time without arguments has been deprecated and will be removed in GraalVM 22.0.");
74+
}
75+
support.initializeAtBuildTime(name, reason);
76+
};
7277
}
7378
}
7479

0 commit comments

Comments
 (0)