diff options
author | aclement <aclement> | 2011-12-16 16:55:18 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-12-16 16:55:18 +0000 |
commit | e3242eaf288060be381b241f5736f2269475eeaf (patch) | |
tree | 37e022d0c36b51cd030f55308ae8c62cd101cab8 | |
parent | e1de567f06bd4e2304113b69fba8cafc697d0517 (diff) | |
download | aspectj-e3242eaf288060be381b241f5736f2269475eeaf.tar.gz aspectj-e3242eaf288060be381b241f5736f2269475eeaf.zip |
1.7.0.M1
-rw-r--r-- | docs/dist/doc/README-170.html | 101 | ||||
-rw-r--r-- | docs/dist/doc/index.html | 1 |
2 files changed, 102 insertions, 0 deletions
diff --git a/docs/dist/doc/README-170.html b/docs/dist/doc/README-170.html new file mode 100644 index 000000000..4a28ed8d3 --- /dev/null +++ b/docs/dist/doc/README-170.html @@ -0,0 +1,101 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> +<html> <head> +<title>AspectJ 1.7.0.M1 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 2011 Contributors. +All rights reserved. +</small></div> + +<h1>AspectJ 1.7.0.M1 Readme</h1> + +<p>The full list of resolved issues in 1.7.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.7.0;">here</a></h2>.</p> + +<h4>1.7.0.M1 available 16-Dec-2011</h4> + +<h2>Notable Changes</h2> + +<h3>M1 - upgrade to Java 7</h3> +<p> +This milestone is the first after the upgrade to the Eclipse Java 7 compiler. +AspectJ moved from Eclipse JDT Core 0.785_R33x (Eclipse 3.3) to Eclipse JDT Core 0.B79_R37x (Eclipse 3.7). +This is a big change where AspectJ is picking up four years of change from the Eclipse compiler. +</p> +<p> +It means that you can now use the new Java 7 language constructs in your programs:</p> +<p> +- Diamond operator in advice: +<code><pre> +aspect Foo { + before(): execution(* *(..)) { + List<String> ls = new ArrayList<>(); + } +} +</pre></code> +<p> +- Diamond operator in ITD: +<code><pre> +public List<String> DiamondITD.ls = new ArrayList<>(); +</pre></code> +<p> +- Underscore literals and binary literals in advice: +<code><pre> + before(): execution(* *(..)) { + int onemill = 1_000_000; + int four =0b100; + } +</pre></code> +<p> +- Multi-catch:<code><pre> +before(): execution(* main(..)) { + try { + foo("abc"); + } catch (ExceptionA | ExceptionB ex) { + bar(ex); + } +} +</pre></code> +<p> +- String switch:<code><pre> + before(String s): execution(* *(..)) && args(s) { + switch(s) { + case "quux": + foo(); + break; + case "bar": + foo(); + break; + default: + foo(); + break; + } + } +</pre></code> +<p> +- Try with resources:<code><pre> + try ( + InputStream in = new FileInputStream(src); + OutputStream out = new FileOutputStream(dest)) + { + // code + } +</pre></code> +</p> +<p><b>Note:</b> there is still more to be done for full Java7 support. invokedynamic handling is not in place yet (AspectJ may have trouble if it encounters that bytecode instruction). Also interplay between +the new language constructs and the existing pointcuts needs some work - for example handler() pointcut and multicatch has a known issue right now. +<h4> +<!-- ============================== --> +</body> +</html> diff --git a/docs/dist/doc/index.html b/docs/dist/doc/index.html index 35e6339dc..ecf92cbfa 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-170.html">1.7.0</a>, <a href="README-1612.html">1.6.12</a>, <a href="README-1611.html">1.6.11</a>, <a href="README-1610.html">1.6.10</a>, |