From: aclement Date: Thu, 1 Dec 2005 12:01:32 +0000 (+0000) Subject: testcode for 118599 X-Git-Tag: V1_5_0RC1~74 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4da88a25f937a55568a0436a0354950343c3b84f;p=aspectj.git testcode for 118599 --- diff --git a/tests/bugs150/pr118599/AnAttributedClass.java b/tests/bugs150/pr118599/AnAttributedClass.java new file mode 100644 index 000000000..f8a4cdc8c --- /dev/null +++ b/tests/bugs150/pr118599/AnAttributedClass.java @@ -0,0 +1,6 @@ +public class AnAttributedClass implements Attributable { + + public void doSomething() { + this.setAttribute("foo", "bar"); + } +} diff --git a/tests/bugs150/pr118599/Attributable.java b/tests/bugs150/pr118599/Attributable.java new file mode 100644 index 000000000..a6add76ae --- /dev/null +++ b/tests/bugs150/pr118599/Attributable.java @@ -0,0 +1,20 @@ +import java.util.*; +public interface Attributable { + + void setAttribute(String name, Object attribute); + Object getAttribute(String name); + + static aspect DefImpl { + + private Map Attributable.attributes = + new HashMap(); + + public void Attributable.setAttribute(String name, Object attribute) { + this.attributes.put(name, attribute); + } + + public Object Attributable.getAttribute(String name) { + return this.attributes.get(name); + } + } +}