As I'm sure you're aware, the planned obsolescence of this approach is its obvious drawback (a similar drawback exists already in the JavaVersion parameter type). I assume this is the reason you said "technical reasons." However, wouldn't it be straight up simple, as well as future proof (if done correctly), to provide a method that tests an int against the available major Java version?
Matt On Jan 10, 2018 6:35 PM, "Gary Gregory" <garydgreg...@gmail.com> wrote: Hi All: I find myself writing a lot of this kind of code: if (SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_8)) ... and Assume.assumeTrue(SystemUtils.isJavaVersionAtLeast(JavaVersion.JAVA_1_8)); I think this would be more tidy: if (SystemUtils.isJavaVersionAtLeast8()) ... If this makes your skin crawl, please present a (technical) argument against it... Gary