diff options
author | wisberg <wisberg> | 2004-02-15 19:13:41 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2004-02-15 19:13:41 +0000 |
commit | 0d5ebc4e81463bf918585ebeaf4a3e01ab3db3ad (patch) | |
tree | ca198137765dfbaeeb72a4d330df5afa28ff5984 /tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java | |
parent | 95f2f555025370059b4acdb9aca17b9db3b640a0 (diff) | |
download | aspectj-0d5ebc4e81463bf918585ebeaf4a3e01ab3db3ad.tar.gz aspectj-0d5ebc4e81463bf918585ebeaf4a3e01ab3db3ad.zip |
@testcase PR#52107 declare [int | String | Object] field on interface
Diffstat (limited to 'tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java')
-rw-r--r-- | tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java b/tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java new file mode 100644 index 000000000..0bc84acf9 --- /dev/null +++ b/tests/bugs/fieldsOnInterfaces/ObjectFieldOnInterface.java @@ -0,0 +1,24 @@ + +import org.aspectj.testing.Tester; + +/** @testcase PR#52107 declare Object field on interface */ +public class ObjectFieldOnInterface implements Runnable { + public static void main(String[] args) { + Tester.expectEvent("class(A): java.lang.Object"); + Tester.expectEvent("class(R): java.lang.Object"); + ObjectFieldOnInterface test + = new ObjectFieldOnInterface(); + test.blah(); + Tester.event("class(R): " + test.object.getClass().getName()); + Tester.checkAllEvents(); + } + public void run() { + } +} + +aspect A { + public Object Runnable.object = new Object(); + public void Runnable.blah() { + Tester.event("class(A): " + object.getClass().getName()); + } +}
\ No newline at end of file |