JEP 406

Remi Forax forax at univ-mlv.fr
Fri Sep 3 13:41:52 UTC 2021


While i was re-reding the JEP, something struck me as odd,
in the method typeTester, in case of the enum Color, the method values() is called on an instance of the enum but this method is static,
the code should be
  case Color c  -> System.out.println("Color with " + Color.values().length + " values");



More information about the amber-spec-experts mailing list