Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] AspectJ 1.9.1 released

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 ) 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

Feedback is welcome.

cheers,
Andy

Back to the top