diff options
author | Andy Clement <aclement@pivotal.io> | 2018-02-28 11:53:14 -0800 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2018-03-09 17:18:45 -0800 |
commit | 7d47cba01043c93bab95b59e66b727580351e85f (patch) | |
tree | 07a7fed0235f2d0e3b9221ebf097e5c24d16aaf0 /tests/features190/efficientTJP/ClinitE.java | |
parent | 6b620ba3aa4b0c9d29560dfa42f8c67dcafb1229 (diff) | |
download | aspectj-7d47cba01043c93bab95b59e66b727580351e85f.tar.gz aspectj-7d47cba01043c93bab95b59e66b727580351e85f.zip |
Bug#531694: generate more optional thisJoinPoint construction code
This commit introduces some new methods into the
runtime Factory class and modifies code generation
to use them (and to use the form of the LDC bytecode
that loads class constants).
Diffstat (limited to 'tests/features190/efficientTJP/ClinitE.java')
-rw-r--r-- | tests/features190/efficientTJP/ClinitE.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/features190/efficientTJP/ClinitE.java b/tests/features190/efficientTJP/ClinitE.java new file mode 100644 index 000000000..a007a2014 --- /dev/null +++ b/tests/features190/efficientTJP/ClinitE.java @@ -0,0 +1,16 @@ +public class ClinitE { + public static void main(String []argv) { + new Inner(); + } + + static class Inner {} +} + +aspect X { + before(): staticinitialization(ClinitE.Inner) { + System.out.println(thisEnclosingJoinPointStaticPart.getSignature()); + } + before(): staticinitialization(ClinitE) { + System.out.println(thisEnclosingJoinPointStaticPart.getSignature()); + } +} |