Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] import static for pointcuts?

true

Andy


On 8 October 2013 11:59, Matthew Adams <matthew@xxxxxxxxxxxxxxx> wrote:
It looks like static pointcuts cannot be imported statically.  True?

package app.util;

public final aspect Bool {

  public static final pointcut true_(): within(*);

  public static final pointcut false_(): !true_();

}

=====

package app.scratch;

import static app.util.Bool.true_; // :(

public aspect Test {

  public pointcut warn(): true_(); // :(

}

--
mailto:matthew@xxxxxxxxxxxxxxx 

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top