Missing warning when using an instance main method

Remi Forax forax at univ-mlv.fr
Mon Sep 18 07:36:50 UTC 2023


Hello,
I believe this code should emit a warning when compiled given it uses an instance main method

class MissingWarnings {
  void main() {
  }
}

But the command
  javac --enable-preview --source 21 MissingWarnings.java
does not print a warning.

regards,
Rémi


More information about the amber-dev mailing list