Browse Source

testcode for 118599

tags/V1_5_0RC1
aclement 18 years ago
parent
commit
4da88a25f9

+ 6
- 0
tests/bugs150/pr118599/AnAttributedClass.java View File

@@ -0,0 +1,6 @@
public class AnAttributedClass implements Attributable {

public void doSomething() {
this.setAttribute("foo", "bar");
}
}

+ 20
- 0
tests/bugs150/pr118599/Attributable.java View File

@@ -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<String,Object> Attributable.attributes =
new HashMap<String,Object>();

public void Attributable.setAttribute(String name, Object attribute) {
this.attributes.put(name, attribute);
}

public Object Attributable.getAttribute(String name) {
return this.attributes.get(name);
}
}
}

Loading…
Cancel
Save