4 ms·
> the other changes are all purely done to the program launcher program, no changes are proposed for the language at all But the behaviour of the launcher is c
by chrisseaton 4y ago
> the other changes are all purely done to the program launcher program, no changes are proposed for the language at all
But the behaviour of the launcher is covered by the language spec isn't it? It's the language that specifies how main is selected.
https://docs.oracle.com/javase/specs/jls/se19/html/jls-12.html#jls-12.1.4 https://docs.oracle.com/javase/specs/jls/se19/html/jls-12.ht...
- kaba0 4y agoWell, there is nothing in the spec that says would forbid the JVM loading a ProgramLauncher.class file with a public static void main method, which will look at the program arguments and if it has something ending in .java, it will compile that file, and load the resulting class (current mode of execution). Also, even if it might become a spec change (a language level one, not a jvm level one), it will be an additive change, at worst some new program won’t run on older JVMs, but all old program will continue to run on new ones.