Sebastien Alborini wrote:
SA> Rickard �berg wrote:
>> 
>> Hi!
>> 
>> marc fleury wrote:
>> > Man this little thing is fun...
>> >
>> > no rickard that is wrong... remember the number of people that run 1.2.0 and
>> > screw up?
>> 
>> Ah, true. Well, what about !javaVersion.startsWith("1.2") then?

SA> How about Oleg's javaVersion.compareTo("1.3")>=0  ?
It would cause problems with JDK 1.10 :-)
!javaVersion.startsWith("1.2") is somewhat better - it would cause
problems only with JDK 1.20 :-)
And here is the best solution: !javaVersion.startsWith("1.2.")

Best regards,
 Oleg 



Reply via email to