You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README-1.9.1.adoc 906B

12345678910111213141516171819202122232425262728293031
  1. = AspectJ 1.9.1
  2. _© Copyright 2018 Contributors. All rights reserved._
  3. The full list of resolved issues in 1.9.1 is available
  4. https://bugs.eclipse.org/bugs/buglist.cgi?bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&f0=OP&f1=OP&f3=CP&f4=CP&j1=OR&list_id=16866879&product=AspectJ&query_format=advanced&target_milestone=1.9.1[here]
  5. _Release info: 1.9.1 available 20-Apr-2018_
  6. == Java 10 support
  7. AspectJ has updated to a recent JDT compiler version (commit
  8. #abe06abe4ce1 - 9-Apr-2018). With this update it now supports Java10.
  9. This means you can use the `var` support. A simple example of combining
  10. var with an aspect:
  11. [source, java]
  12. ....
  13. public class Code3 {
  14. public static void main(String []argv) {
  15. var x = "hello";
  16. System.out.println(x.getClass());
  17. }
  18. }
  19. aspect X {
  20. before(): call(* *.getClass()) && target(String) {
  21. System.out.println(thisJoinPointStaticPart);
  22. }
  23. }
  24. ....