blob: ff558864197457183a34c0c6a9aafa030f0aa0b9 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html> <head>
<title>AspectJ 1.9.5 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>
&copy; Copyright 2019 Contributors.
All rights reserved.
</small></div>
<h1>AspectJ 1.9.5</h1>
<p>The full list of resolved issues in 1.9.5 is available
<a href="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.5">here</a></h2>.</p>
<p>AspectJ 1.9.5 supports Java13. Java13 introduces text blocks, but you must activate support for that via
an <tt>--enable-preview</tt> flag when using the compiler and attempting to run the resultant classes:
Here is <tt>Code.java</tt>:
<pre><code>
=======8<=========
public class Code {
public static void main(String[] argv) {
}
static aspect X {
before(): execution(* Code.main(..)) {
System.out.println(
"""
This
is
on
multiple
lines
"""
);
}
}
}
=========8<=========
</code></pre>
<p>Compile it with:
<pre><code>
$ ajc --enable-preview -13 Code.java
</code></pre>
<p>Now run it:
<pre><code>
$ java --enable-preview Code
This
is
on
multiple
lines
</code></pre>
<p>Available: 1.9.5 available 28-Nov-2019</p>
<br><br>
<!-- ============================== -->
</body>
</html>