Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Support for java 14

First snapshots with Java14 are available. If you have a chance, please kick the tires on it:

AspectJ 1.9.6.BUILD-SNAPSHOT

<repository>
<id>snapshots</id>
<name>snapshots</name>
</repository>

It does work with Java14 features:

=======8<=========
public record Person(String firstName, String lastName, int age) {}
=======8<=========

=======8<=========
public class UsingPersonRecord {
  public static void main(String[] argv) {
    Person p = new Person("A","B",99);
    System.out.println(p);
    System.out.println(p.firstName());
  }
}
=======8<=========

=======8<=========
public aspect TraceRecordComponents {
  before(): execution(public * *()) {
    System.out.println(thisJoinPointStaticPart);
  }
}
=======8<=========
$ ajc --enable-preview -14 Person.java UsingPersonRecord.java TraceRecordComponents.java

$ java --enable-preview UsingPersonRecord
execution(String Person.toString())
Person[firstName=A, lastName=B, age=99]
execution(String Person.firstName())
A

cheers,
Andy


On Tue, 14 Apr 2020 at 17:07, Andy Clement <andrew.clement@xxxxxxxxx> wrote:
Damn, someone noticed 14 was out :)  I hope to get to it in April. Out of interest are there any particular features you need from that version of Java?

cheers,
Andy

On Tue, 14 Apr 2020 at 06:39, Ihor Mochurad <i.mochurad@xxxxxxxxx> wrote:
I would like to know the answer to this question as well as my organization would like to switch to java14 and lack of AspectJ support is the blocker.

On Tue, Apr 14, 2020 at 3:48 AM Mikael Petterson <mikaelpetterson@xxxxxxxxxxx> wrote:
Hi,

Any plans to support java 14? When ?

br,

//mike

 

 

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/aspectj-users

Back to the top