Hello,

could javax.lang.model.SourceVersion receive a feature() method returning the version as an int, analog to java.lang.Runtime.Version?

if (SourceVersion.latest().feature() >= 18) {}

is simpler than comparing enums which may or may not exist dependent on the deployed java version and cleaner than ordinal() tricks.

best regards,

michael

Reply via email to