blob: 06a1bdb2d055062c146a3ff82394966b784648b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
<!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>
© 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>
|