AspectJ 1.9.1 is released.

We are still working out how best to support the new rapid release plan for 
Java, where many of the frequent releases are not long term support releases 
(Java10 ends public updates in Sep 2018).  Just to try and stay up to date with 
Java functionality, AspectJ 1.9.1 actually integrates Java10 support.  Per the 
readme ( https://eclipse.org/aspectj/doc/released/README-191.html 
<https://eclipse.org/aspectj/doc/released/README-191.html> ) you can use the 
new ‘var’ support.

public class Code3 {
        public static void main(String []argv) {
                var x = "hello";
                System.out.println(x.getClass());
        }
}

aspect X {
        before(): call(* *.getClass()) && target(String) {
                System.out.println(thisJoinPointStaticPart);
        }
}

This will compile and weave just fine.

Grab 1.9.1 from maven central soon (it submitted, will take a day or so to 
sync) or from the downloads page: https://eclipse.org/aspectj/downloads.php 
<https://eclipse.org/aspectj/downloads.php>

Feedback is welcome.

cheers,
Andy
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to