diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-04-21 15:13:19 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-04-21 15:13:19 -0700 |
commit | 144a6294884029d2a5a2a67d0e792b8507a7e897 (patch) | |
tree | 80ce5284801dc7b6e2421dcbaf081d5b1724e17d /docs/dist | |
parent | a9da693f8a3016edf96cfe4b29d304afdfb6b1b8 (diff) | |
parent | 5a5bef1efd1026ee508fddff9be0632af68ba984 (diff) | |
download | aspectj-144a6294884029d2a5a2a67d0e792b8507a7e897.tar.gz aspectj-144a6294884029d2a5a2a67d0e792b8507a7e897.zip |
Merge branch 'BETA_JAVA8'
Conflicts:
build/usedForMavenUpload/aspectjrt.pom
build/usedForMavenUpload/aspectjtools.pom
build/usedForMavenUpload/aspectjweaver.pom
docs/dist/doc/README-174.html
docs/dist/doc/index.html
lib/asm/build.xml
org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/messages.properties
weaver/.classpath
weaver/src/org/aspectj/weaver/bcel/asm/StackMapAdder.java
Diffstat (limited to 'docs/dist')
-rw-r--r-- | docs/dist/doc/README-180.html | 92 | ||||
-rw-r--r-- | docs/dist/doc/index.html | 1 |
2 files changed, 93 insertions, 0 deletions
diff --git a/docs/dist/doc/README-180.html b/docs/dist/doc/README-180.html new file mode 100644 index 000000000..4c2f52486 --- /dev/null +++ b/docs/dist/doc/README-180.html @@ -0,0 +1,92 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<html> <head> +<title>AspectJ 1.8.0 Readme</title> +<style type="text/css"> +<!-- + P { margin-left: 20px; } + PRE { margin-left: 20px; } + LI { margin-left: 20px; } + H4 { margin-left: 20px; } + H3 { margin-left: 10px; } +--> +</style> +</head> + +<body> +<div align="right"><small> +© Copyright 2014 Contributors. +All rights reserved. +</small></div> + +<h1>AspectJ 1.8.0 Readme</h1> + +<p>The full list of resolved issues in 1.8.0 is available +<a href="https://bugs.eclipse.org/bugs/buglist.cgi?query_format=advanced;bug_status=RESOLVED;bug_status=VERIFIED;bug_status=CLOSED;product=AspectJ;target_milestone=1.8.0.M1;target_milestone=1.8.0;">here</a></h2>.</p> + +<ul> +<li>1.8.0 available 17-Apr-2014 +<li>1.8.0.RC1 available 18-Mar-2014 +<li>1.8.0.M1 available 29-Jul-2013 +</ul> + +<h2>Notable changes</h2> + +<h3>Java 8 compilation</h3> + +<p>AspectJ has been updated to the latest available Eclipse Java +compiler version that compiles Java8 code (the version available as a feature patch on top of Eclipse 4.3.2).</p> +</p> +<p>Here is a sample AspectJ8 program:</p> + +<pre><code> +=== 8< ==== C.java ==== 8< === +import java.util.Arrays; + +interface I { + // Default method + default void foo() { + System.out.println("ABC"); + } +} + +public class C implements I{ + public static void main(String[] args) { + new C().foo(); + // Lambda + Runnable r = () -> { System.out.println("hello world!"); }; + r.run(); + // Used Java8 b97 + Arrays.asList(MyClass.doSomething()).forEach((p) -> System.out.println(p)); + } +} + +aspect X { + before(): execution(* I.foo()) { + System.out.println("I.foo running"); + } + before(): staticinitialization(!X) { + System.out.println("Clazz "+thisJoinPointStaticPart); + } +} + + +class Utils { + public static int compareByLength(String in, String out) { + return in.length() - out.length(); + } +} + +class MyClass { + public static String[] doSomething() { + String []args = new String[]{"4444","333","22","1"}; + // Method reference + Arrays.sort(args,Utils::compareByLength); + return args; + } +} +=== 8< ==== C.java ==== 8< === +</code></pre> + +<!-- ============================== --> +</body> +</html> diff --git a/docs/dist/doc/index.html b/docs/dist/doc/index.html index 5f4a98de8..6040bc034 100644 --- a/docs/dist/doc/index.html +++ b/docs/dist/doc/index.html @@ -138,6 +138,7 @@ <tr> <td>README's </td> <td>Changes and porting guide for AspectJ + <a href="README-180.html">1.8.0</a>, <a href="README-174.html">1.7.4</a>, <a href="README-173.html">1.7.3</a>, <a href="README-172.html">1.7.2</a>, |