Jabel brings post-Java 8 features to Java 8 users

Do you want to stay on Java 8 while taking advantage of the latest Java syntax and features? A tool called Jabel enables this because, as its GitHub page states, “life is too short to wait for your users to upgrade their Java.”

Jabel is an “annotation processor” that instruments Java compiler classes and treats some Java 9 and later language features as if they were supported in Java 8. The result is valid Java 8 bytecode for switch expressions, var declarations, and other features not supported in Java 8. Basically, Jabel tricks the compiler into thinking that certain features were developed for Java 8 by removing the checks that report them as invalid for the Java 8 target.

To read this article in full, please click here

分類: IT 資訊科技(信息技术), java教學網站, 熱門新聞,標籤: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , 。這篇內容的永久連結